Hi All,
In my grid, if the mode is Add, there are certain controls that the user is not going to see. I could simply do...
control1.visible = control2.visible = control3.visible = false
but that's a little ugly. Is it possible to make a container variable and add controls to it, and then I can simply make said variable's visibility property equal to false?
Thanks, any examples/links are very helpful.
EDIT: I've given thought to something like this... But i'm sure it's not the correct way of doing this.
Dim ControlsNotUsedInAdd As List(Of Control)
ControlsNotUsedInAdd.Add(ctrl1)
ControlsNotUsedInAdd.Add(ctrl2)
ControlsNotUsedInAdd.Add(ctrl3)
ControlsNotUsedInAdd.Add(ctrl4)
ControlsNotUsedInAdd.Add(ctrl5)
ControlsNotUsedInAdd.Add(ctrl ...
Go to the complete details ...