S
Steve
Hello,
I am just starting out with C#. I have a set of controls
on a form that I set .Enable = true; or .Enable = false;.
Rather than listing all the controls all over the place, I
would like to list them in an array, ArrayList... so that
I can loop through the array
for (int i; i < myArr.Lenght, i++) myArr(i).Enable = true;
Can I do this (or something like this)?
ArrayList myArr(group1, group2, panel1, label1, txt1);
what is the correct syntax/correct collection object?
Thanks
Steve
I am just starting out with C#. I have a set of controls
on a form that I set .Enable = true; or .Enable = false;.
Rather than listing all the controls all over the place, I
would like to list them in an array, ArrayList... so that
I can loop through the array
for (int i; i < myArr.Lenght, i++) myArr(i).Enable = true;
Can I do this (or something like this)?
ArrayList myArr(group1, group2, panel1, label1, txt1);
what is the correct syntax/correct collection object?
Thanks
Steve