In VB6, you can add a control to a form by its name, ie
VB Code:
Controls.Add("VB.Label","SomeLabel")
Does such a beast exist in .NET? In other words, I don't necessarily want to have to declare something as a Textbox in order to add it to the form. I would like to declare a Control, and be able to choose what the type of control it will be at run time.
![]()




Reply With Quote