| I tried the code pasted below but it does not seem to work in vb.net. However, this creates only one text box and not where I exactly want it to be. My objective here is to create 5 text boxes under the respective labels. There will then be a button which will take in all the text inputs from the text boxes and show it in a grid view. |
For i as short = 0 To 4 ' 0 1 2 3 4 = 5 Txtdynamic = New TextBox Txtdynamic.Width = 20 Txtdynamic.Visible = True Txtdynamic.MaxLength = 1 Txtdynamic.Location = New Point(pos + 5, 0) pos += 30
This keeps giving me this error: "error BC30456: 'location' is not a member of 'System.Web.UI.WebControls.TextBox'."
Can anyone please me specify the location of the textboxes?
Last edited by a moderator: