Make Form2 the startingForm

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Mar 2008
Posts: 173
Reputation: Lukezzz is an unknown quantity at this point 
Solved Threads: 1
Lukezzz Lukezzz is offline Offline
Junior Poster

Make Form2 the startingForm

 
0
  #1
Aug 18th, 2008
If I have 2 Forms in my application and Form1 is my startingForm. Is it possible to make Form2 as my startingForm instead.
What indicates in the code that Form1 is my startingForm.
Is this possible to do ?
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 351
Reputation: Radical Edward has a spectacular aura about Radical Edward has a spectacular aura about Radical Edward has a spectacular aura about 
Solved Threads: 62
Radical Edward's Avatar
Radical Edward Radical Edward is offline Offline
Posting Whiz

Re: Make Form2 the startingForm

 
0
  #2
Aug 18th, 2008
The starting form is the first form that's opened. If you're using code generated by the new project wizard there will be a *.cpp file named the same as your project. That's where main() is, and in main() you'll see something like this:
  1. // Create the main window and run it
  2. Application::Run(gcnew Form1());
Change Form1 to the name of the form you want to be the starting form and that's it!
If at first you don't succeed, keep on sucking until you do succeed.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 173
Reputation: Lukezzz is an unknown quantity at this point 
Solved Threads: 1
Lukezzz Lukezzz is offline Offline
Junior Poster

Re: Make Form2 the startingForm

 
0
  #3
Aug 18th, 2008
Radical Edward

Thank you for your help. I think I did it

Originally Posted by Radical Edward View Post
The starting form is the first form that's opened. If you're using code generated by the new project wizard there will be a *.cpp file named the same as your project. That's where main() is, and in main() you'll see something like this:
  1. // Create the main window and run it
  2. Application::Run(gcnew Form1());
Change Form1 to the name of the form you want to be the starting form and that's it!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC