I'm wondering if there is a way to give each new instance of a form a unique name or ID that i can use to reference back to.. as of now i am using this code to create a new form instance:
Private Sub listBuddy_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles listBuddy.DoubleClick
Dim newIM As New imform()
newIM.Name = listBuddy.SelectedItem.ToString
Basically what i want to be able to do is have a reference to each new instance so i can have something to the effect of...
Dim myname As String = "daniel"
Dim newIM(myname) As New imform()
newIM(myname).txtbox.Text = "whatever"
the idea is that I am making an instant messenger application and when a user double clicks the name in their buddylist it creates a new instance of the "imform" which includes textbox, send button... etc, and I want to be able to name each instance so when an instant message is recieved, it know's what instance of the form to go into... or if one doesn't exist yet, it can create a new instance of the form with the desired name.
Any help would be appreciated, Thanks!