Multiple Instances of a Form

  • Thread starter Thread starter Matthew Lanham
  • Start date Start date
M

Matthew Lanham

Hello all,

I am looking to open multiple instances of the same form and be able to
access the forms variables and check if the form is loaded. I need to
sort of give each form an ID, although it is the same form i am loading
so that i can access that forms controls etc.

How do i achieve this effectivly?.

Thanks

Matt
 
How is your requirement different to MDI?

--
Bob Powell [MVP]
Visual C#, System.Drawing

All you ever wanted to know about ListView custom drawing is in Well Formed.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*

The GDI+ FAQ: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://royo.is-a-geek.com/siteFeeder/GetFeed.aspx?FeedId=41

*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*RSS*
 
You can set a form's name. However, I don't know of any container
that currently holds all forms (aka, forms don't add themselves to any
collections when created). You could either add registration logic in
your form, or have a factory create your forms and register each of
them by name when created. .NET V2 adds some support for this
feature into Winforms at a more native level, though probably still
not exactly what you are looking for.
 
Back
Top