I need to point to a control whose name I won't know until run-time. How do I do it?
My code currently looks a little like this:
Dim ctlControl as Control
Dim strName as String
ctlControl = cType(strName, Control)
...now do stuff with/to the control named strname...
Now this is clearly rubbish, but it illustrates what I want to do.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!