vb.net Window forms controls
I call out to a database for the name of a control to determine where on the form the control will go. however i cannot convert the name of the control that i get from my sql to a point where the window's form recongnizes which control i'm requesting action on . here is an example of my code.
the sql brings in the tabname and the control name
i string them together + the "txt" to get the name of the control
dim mystring as string
mystring = "txt" & TabName & ControlName
mystring.text = "I found the control"
i have tried other types besides string to concatenate the sql names and the "txt" but to no avail.
what can i do to dynamically call the name control i want to use. I don't want to use case statements.