| | |
Make Form2 the startingForm
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
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:
Change Form1 to the name of the form you want to be the starting form and that's it!
C++ Syntax (Toggle Plain Text)
// Create the main window and run it Application::Run(gcnew Form1());
If at first you don't succeed, keep on sucking until you do succeed.
•
•
Join Date: Mar 2008
Posts: 173
Reputation:
Solved Threads: 1
Radical Edward
Thank you for your help. I think I did it
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:
Change Form1 to the name of the form you want to be the starting form and that's it!C++ Syntax (Toggle Plain Text)
// Create the main window and run it Application::Run(gcnew Form1());
![]() |
Other Threads in the C++ Forum
- Previous Thread: "Taking an address"
- Next Thread: Calling external files
| Thread Tools | Search this Thread |
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count database delete deploy developer dll download dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph gui homeworkhelp iamthwee ifstream image input int java lib library linker list loop looping loops map math matrix memory multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg simple sorting string strings temperature template text text-file tree url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets





