I have a form and am creating controls, adding them at runtime. How do I get access to those controls without using controlcollection.
If I use controlcollection loop the system is getting hanged for a while.
Is there any other way to access that control?
Thanks in Advance.
Not sure what language you are using but if you know the name of the control you can use the control collection and simply get a control with the specified name. This does not require you to loop through anything.
Getting a runtime control without accessing the controlcollection as far as i am aware is impossible.
For example some runtime logic i use myself is as follows: