avinash_takale
asked on
how to control array in C#
Hi Experts,
Is it pssible to create control array viz picture box, just like VB.
thanks in adance.
Is it pssible to create control array viz picture box, just like VB.
thanks in adance.
Do something like this:
// if you want array of buttons
Control[] controls = new Controls[10];
for(int i = 0; i < 10; i++) controls[i] = new Button();
Cheers,
Aaron
http://aaronfeng.blogspot.com/
// if you want array of buttons
Control[] controls = new Controls[10];
for(int i = 0; i < 10; i++) controls[i] = new Button();
Cheers,
Aaron
http://aaronfeng.blogspot.com/
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
but this is NOT the same thing as a VB 6 style Control Array - .NET does NOT support control arrays in the same way that VB 6 did.
AW