Is there anyway (that I’m missing!) to reference all of the controls in a container control?
For example if I have a container called containercontrol1 that contains 5 text fields that I want to enable and disable depending on whether the user is allowed to input into them at that particular time I’d like to be able to do something along the lines of containercontrol1.allcontrols.enabled = false
At the moment I’m having to type txtFirstname.enabled = false txtLastname.enabled = false etc etc which is time consuming.
@Rod Pascoe For your immediate concern, all the controls would be enabled/disabled if the ContainerControl itself is enabled/disabled so you don’t have to set the state for all the controls.
[quote=460996:@Markus Rauch]for Textboxes the ReadOnly Property is better, so you can select and copy the text in this textbox.
disable will not allow to put a cursor in it.[/quote]
Thanks Markus, for this particular use case then disabled is required but I do get what you mean.