I am trying to make an application that has a starting form and then if you click on a button it opens and another form. I am using VC++ and i create 2 new forms in it and used this to start the other form.
It complies fine but gives me this run time error
Code:
Application::Run(gcnew w_Name());
Code:
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll Additional information: Starting a second message loop on a single thread is not a valid operation. Use Form.ShowDialog instead.
Comment