In Web development wa can use a method called System.Web.UI.Control.FindControl(string) to get a control by its ID. So in a Page (inheriting from Control by default) we can easily get any control of that page.
Do I have missed the equivalent of that function for the System.Windows.Forms.Control ?
I know we have access to the ControlCollection of a form but if I have a textBox on my Form named "TextBox1", how can I get it ? (can't use me.TextBox1 if the control has been added dynamically)
No other solution to get an enumerator on the ControlCollection and test all control ????
Thanks,
Do I have missed the equivalent of that function for the System.Windows.Forms.Control ?
I know we have access to the ControlCollection of a form but if I have a textBox on my Form named "TextBox1", how can I get it ? (can't use me.TextBox1 if the control has been added dynamically)
No other solution to get an enumerator on the ControlCollection and test all control ????
Thanks,