Hi Jason,
You are probably better off having formA and formB share a common parent
responsible for the message loop.
If formA is started from Main, have Main start both forms. Pass
properties to formB via Main.
What are you trying to do?
> Hi,
>
[quoted text clipped - 4 lines]
>
> Jason

Signature
Happy Coding!
Morten Wennevik [C# MVP]
You can do so using Show and Close method of the Form. Let us suppose that
you have 3 forms, Form1 (the main form), Form2 and Form3.
From Form2, if you want to open Form3 and close Form2, you can use the
following code:
Form3 f3 = new Form3();
f3.Show(); // Opens the Form3
this.Close(); // Closes the current form (Form2)
If you close Form1 (which might be the main form), the entire application
will close.

Signature
Nand Kishore Gupta
> Hi,
>
[quoted text clipped - 3 lines]
>
> Jason
Morten Wennevik - 18 Aug 2006 07:47 GMT
> You can do so using Show and Close method of the Form. Let us suppose
> that
[quoted text clipped - 10 lines]
> If you close Form1 (which might be the main form), the entire application
> will close.
Not if you fire up another Form in your Main method
Application.Run(new Form1());
Application.Run(new Form2()); // will start when Form1 ends

Signature
Happy Coding!
Morten Wennevik [C# MVP]
WhiteWizard - 18 Aug 2006 13:47 GMT
Not sure you want to create two forms in one application that way, I'm pretty
sure you end up on two different threads.
You can also start the application without tying it to a particular form
Form1 frm1 = new Form1();
frm1.Show();
Application.Run();
Then you can open and or close forms without the problem of shutting down
the application when you close a form, or having to leave a form in memory
while your app is running even if you don't need it.
Of course it DOES introduce the problem of your having to specifically end
your application.
WhiteWizard
aka Gandalf
MCSD.NET, MCAD, MCT
> > You can do so using Show and Close method of the Form. Let us suppose
> > that
[quoted text clipped - 15 lines]
> Application.Run(new Form1());
> Application.Run(new Form2()); // will start when Form1 ends