How To Get Control Property by “String Name”?

You can access the controls by name via the Form.Controls property, for instance:

Dim text1 As TextBox = CType(Me.Controls("text_1"), TextBox)

Leave a Comment