mevets
Member
I am trying to set the backcolor to a control. The user provides the name of the control in a TextBox. How is this done?
Unsuccessful with:
Unsuccessful with:
VB.NET:
Dim nameofctrl As Object = Textbox1.text
DirectCast(nameofctrl, Control).BackColor = Color.Green