| | |
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 array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count data database delete desktop developer directshow dll download dynamic encryption error file forms fstream function functions game generator getline givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





