I am creating controls from code so for example
Dim tb As New TextBox()
tb.Location = New Point(50, 100)
tb.Size = New Size(100, 50)
tb.Name = "tb2"
Me.Controls.Add(tb)
Now with this l have named the tb to tb2
Now in the code how do I reference this. If l go like this
tb2.text = "hi"
it will now work because it is telling me that the control is not there.
Dim tb As New TextBox()
tb.Location = New Point(50, 100)
tb.Size = New Size(100, 50)
tb.Name = "tb2"
Me.Controls.Add(tb)
Now with this l have named the tb to tb2
Now in the code how do I reference this. If l go like this
tb2.text = "hi"
it will now work because it is telling me that the control is not there.