K
Karl
I have a group of controls and I would like to leave the first one visible
but be able to turn the other 7 visible or invisible dynamically. They are
all named the same except the number at the end (i.e.: Control1, Control2,
Control3, etc...) What I attempted to do was use a for loop but this
doesn't work (or at least I don't think I'm doing it correctly. What I'm
doing is something like this.
for (int i = 2, i <= 8, i++)
{
(Control + i).visible = false
}
I know this is wrong, but I would like to find out the correct way to do
this.
Any help would be appreciated.
but be able to turn the other 7 visible or invisible dynamically. They are
all named the same except the number at the end (i.e.: Control1, Control2,
Control3, etc...) What I attempted to do was use a for loop but this
doesn't work (or at least I don't think I'm doing it correctly. What I'm
doing is something like this.
for (int i = 2, i <= 8, i++)
{
(Control + i).visible = false
}
I know this is wrong, but I would like to find out the correct way to do
this.
Any help would be appreciated.