How to build Multi Form?
Original Post in C++ Board:
Environment: MS Visual Studio.net 2003
VC++>>Windows Form Applications (.net)
I would like to have two or more Forms in the application, and I add a new form (Form2) to it (I want to design the new form in the design mode rather than dealing with the code, because it is much easier). But after running, the new form (Form2) did not show itself, why? I add the statement:
in the Form1.h, then the project cannot pass the compilation, the error is:
Error C2352: nonlicet call of non-static member functions.
Because I do not use the english language version, so the error message may not be exact, I just translate it...
Assuming you are using MFC and SDI, you create a new object from the form class. Call ShowWindow().
unfortunately, I am not using MFC...
It is just Windows Form Applications in .net (VC++)
Sigh, I am dealing with this problem for two days.