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:
  1. Private Sub Form1_Click(sender As Object, e As MouseEventArgs) Handles MyBase.Click
  2.         Dim newTB As New TextBox
  3.         newTB.Name = "tbNew" & objectcounter
  4.         'Set location, size and so on if you like
  5.         Me.Controls.Add(newTB)
  6.  
  7.         Dim x = e.Location.X
  8.         Dim y = e.Location.Y
  9.  
  10.         newTB.Location = New Point(x, y)
  11.     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