Not sure how you'd do this in .NET, but in VB6, you'd declare a form variable using the WithEvents keyword, open the form with frm.Show, then set the variable equal to the open form, like m_frm = Forms("MyForm").
In your situation, it looks like you'd need an array of form variables to keep track of the ones that had been opened. Sorry I don't have an exact answer for .NET, but I hope this helps. Dan -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Joao Santa Barbara Sent: Monday, April 15, 2002 2:17 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Geeting Instance VB.NET Hi people :) Supose that you have a button that opens a new form every time you press it Private sub command1_click ( byval E as .............. ) Dim frm as new Form1 frm.show () end sub my question is how do i get the other open instances ??? i open several windows and i need to know some information that is i each, how can i do that ??? Many thanks JSB :) You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.