I'm trying to create a non-definite number of textboxes in my program, place them in my form and later retrieve information from them.
I want to add one textbox at a time when I press a button.
I can add one textbox like this:
Private Sub Addsystem_Click(sender As Object, e As EventArgs) Handles Addsystem.Click
Form2.ShowDialog()
Dim mytext As New TextBox()
mytext.Location = New Point((OBstartfreq.Location.X), (OBstartfreq.Location.Y + 30))
Me.Controls.Add(mytext)
End Sub
Like this I can get only the text from the mytext textbox.
How can I make it that every time I press the button a new textbox will appear?