i need to know how to have simple arrays for control buttons,
in vb6 when you copy and pasted it did it automatically, in vb.net it dosent and when i try to add () it dosent work...
please help ...
i need like
cmdbut(1)
cmdbut(2)
...
cmdbut(100)
etc
Printable View
i need to know how to have simple arrays for control buttons,
in vb6 when you copy and pasted it did it automatically, in vb.net it dosent and when i try to add () it dosent work...
please help ...
i need like
cmdbut(1)
cmdbut(2)
...
cmdbut(100)
etc
Control Arrays aren't part of VB.NET. You could create a Collection of buttons through code though.
Just a note, to have more than one button share the same event handler ( as with VB 6 control arrays ), you could use the Handles clause
that sounds pretty retarded! what happened to control arrays!?
Call it retarded or whatever you like, that is the way it is! Search this forum for "control array" and you'll get a lot of results.
Search MSDN for "control collections", and you'll get a lot of examples on how to go about with it.
Search google for vb.net "control arrays" and you'll also get a lot of results.
stop salking, and good luck :thumb: