0

Hiii...
I want to know how to open two windows forms at a time...
when i give as
Application::Run(gcnew Form1() );
Application::Run(gcnew Form2() );

Then, the Form2 will open when first one closes,...
So any one please help any other way is their so that , i can open two forms at a time..


Thanks in Advance.....

2
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by shrutinr
0

Include "Form2.h" (change to the appropriate name in your code). Create a load method for Form1 and put

Form2 ^ form2 = gcnew Form2();
form2->Show();
0

Include "Form2.h" (change to the appropriate name in your code). Create a load method for Form1 and put

Form2 ^ form2 = gcnew Form2();
form2->Show();

Thank you..
But I know this ,, i want both form1 and form2 should open together..

Edited by shrutinr: n/a

0

Well, there's just a tiny bit of delay (it improves a little if you set Form2 to load in Form1's constructor). I imagine (but could not even begin to tell you how to approach it) you could use threads to your advantage. Or you could create one form with a barrier down the middle. It depends on your application. Sorry I can't be of more help.

0

Well, there's just a tiny bit of delay (it improves a little if you set Form2 to load in Form1's constructor). I imagine (but could not even begin to tell you how to approach it) you could use threads to your advantage. Or you could create one form with a barrier down the middle. It depends on your application. Sorry I can't be of more help.

ok Thank you for your valuable suggestion..
I will try as u suggested..

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.