Hi guys,
How do I save a form which programmatically adds objects onto the GUI, when after I close I can get it to its latest form?
So here's an example code:
vb.net Code:
Private Sub Form1_Click(sender As Object, e As MouseEventArgs) Handles MyBase.Click
Dim newTB As New TextBox
newTB.Name = "tbNew" & objectcounter
'Set location, size and so on if you like
Me.Controls.Add(newTB)
Dim x = e.Location.X
Dim y = e.Location.Y
newTB.Location = New Point(x, y)
End Sub
So after adding a few textboxes on the form, and after exiting, I'd like to be able to save its latest form and continue from there.
Is this possible?
Thanks
Vizier87