The simplest thing to do is to go ahead and create all the checkboxes you
need, giving them different names.
Double click on one of them and then look at the Sub declaration line that
is created for you. Scroll to the end of the line and you'll see something
like:
Handles Checkbox1.click
Add a comma and the additional checkboxes and events to this list:
Handles Checkbox1.click, Checkbox2.click, Checkbox3.click, etc.
Now, no matter which checkbox gets clicked, this one sub routine will fire
(this was one of the benefits of the old control array).
You'll now be faced with a problem. How to determine which control got
clicked and caused the event to fire? That's what the "sender" event
argument is for. It represents the object that fired the event in the first
place.
You could figure out which checkbox fired the event several ways, but here
is a simple way:
Select Case Sender.name
Case Checkbox1
Case Checkbox2
Case Checkbox3
etc.
End Select
Good luck!
"Mike" <mi**********@comcast.net> wrote in message
news:fc****************************@phx.gbl...
I am just beginning with VB and had been using a crippled
version of VB 6.0 which works fine except there's limited
information resouces with it. So, like a good scout, I
got a learning edition of VB.Net, 2002, which has far
better resources. But there are changes which I don't
understand.
No problem creating a Check Box Control Array in VB 6.0
but that whole thing has changed in the upgrade to
VB.Net. How would I do this? Keep it simple please. I
assume I will need to write some code...not a clue about
that. Help would be most appreciated. Thank you.