How do I, if at all possible, reference a variable with another variable
in VB.NET?
For example, if I have a form with a textbox and a button. Type var1 in
the textbox
Private Sub Button_Click(By Val sender As System.Object, ByVal e As
System.EventArg s) Handles Button.Click
dim var1 as string
var1 = "Hello World"
msgbox( /// display the contents of var1 using what was entered in
the textbox /// )
End Sub
Is this possible?
Thanks!
in VB.NET?
For example, if I have a form with a textbox and a button. Type var1 in
the textbox
Private Sub Button_Click(By Val sender As System.Object, ByVal e As
System.EventArg s) Handles Button.Click
dim var1 as string
var1 = "Hello World"
msgbox( /// display the contents of var1 using what was entered in
the textbox /// )
End Sub
Is this possible?
Thanks!
Comment