I'm trying to modify multiple textboxes with a sub routine.
This is a rough snipet I was testing, how do I set an object current via code?
THanks in advance
This is a rough snipet I was testing, how do I set an object current via code?
VB.NET:
sub tboxmod()
Dim n As Integer
Dim Tname As String
For n = 1 To 2
Tname = "TextBox" & n
Dim TBox As TextBox
Set TBox = Tname
TBox.Text = "n"
Next n
End Sub
Last edited by a moderator: