Read from textbox created programitically

dmarkus100

Member
Joined
Jul 11, 2010
Messages
15
Programming Experience
1-3
Here is my code to programitically create a textbox on the fly

Dim a1_box As New TextBox
Me.Controls.Add(a1_box)

In another method I need to read the value entered by the user, but, a1_box is not a know item.

Thanks for your help
 
Give the control a Name and you can find it by Me.Controls("thename").
 
Back
Top