I'm looking for a way to refernce a control by a string that represents the
name of the control. I dynamically create some textboxes, labels, and
comboboxes each name by a loop iteration index. (E.G.: "combo" & i) These
are added to the controls of a panel. How can I at a later time reference
these items in a panel by using "combo0", "combo1", etc... using a string
variable? An example would be the removal of one of the items from the
control. So far all I can find is:
Me.myPanel.Controls.Remove(myControl)
or
Me.myPanel..Controls.IndexOf(myControl)
Any suggestions?
thanks
nate