Why do I get a not declared error when I try to send a string to a textbox?
In form load I declare something like:
Dim person1, person2, person3, person4 As String
person1 = "Guy1"
person2 = "Guy2"
person3 = "Guy3"
person4 = "Guy4"
In a checkbox procedure I use:
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
TextBox2.Text = person1
I block copied in error, above is the correct code snippet
In form load I declare something like:
Dim person1, person2, person3, person4 As String
person1 = "Guy1"
person2 = "Guy2"
person3 = "Guy3"
person4 = "Guy4"
In a checkbox procedure I use:
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
TextBox2.Text = person1
I block copied in error, above is the correct code snippet
Last edited: