Multiple instances of the same form

I have a windows form that does lots of stuff. :)  It takes a connection string for its database.  I'd like to have multiples of these forms open.  Like multiple open clients, one per window.  I would need to somehow identify each window or instance.  How would I do that?  I thought this might work:

' Form1
Public Class Form1
    Inherits System.Windows.Forms.Form
    Dim Forms(2) As System.Windows.Forms.Form ' A forms array

    ' Create 2 forms
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Forms(0) = New Form2
        Forms(0).Show()
        Forms(1) = New Form2
        Forms(1).Show()

        'Forms(0).Testvalue = "Form 0" ' Doesn't work
        'Forms(1).Testvalue = "Form 1"
    End Sub
End Class

' Form2
Public Class Form2
    Inherits System.Windows.Forms.Form
    Public TestValue As String
End Class

...but "Forms(0).Testvalue" is invalid.  I don't get why, it's a public variable.  So I put a textbox on form2.  "Textbox1" isn't a property of a "New Form2".

What's the best method of doing this?
Thanks!
MIKEVAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike TomlinsonMiddle School Assistant TeacherCommented:
Change

    Dim Forms(2) As System.Windows.Forms.Form

to

    Dim Forms(2) As Form2

~IM
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MIKEVAuthor Commented:
Very cool, immense thanks. :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.