943,928 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 474
  • C++ RSS
Aug 18th, 2008
0

Make Form2 the startingForm

Expand Post »
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 ?
Reputation Points: 10
Solved Threads: 1
Posting Whiz in Training
Lukezzz is offline Offline
268 posts
since Mar 2008
Aug 18th, 2008
0

Re: Make Form2 the startingForm

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:
C++ Syntax (Toggle Plain Text)
  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!
Reputation Points: 361
Solved Threads: 97
Posting Pro
Radical Edward is offline Offline
526 posts
since May 2008
Aug 18th, 2008
0

Re: Make Form2 the startingForm

Radical Edward

Thank you for your help. I think I did it

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:
C++ Syntax (Toggle Plain Text)
  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!
Reputation Points: 10
Solved Threads: 1
Posting Whiz in Training
Lukezzz is offline Offline
268 posts
since Mar 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: "Taking an address"
Next Thread in C++ Forum Timeline: Calling external files





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC