Thread: How to build Multi Form?

  1. #1
    Join Date
    Jun 2003

    How to build Multi Form?

    Original Post in C++ Board:

    Hello all,
    Question again..
    Environment: MS Visual 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...

  2. #2
    Registered User
    Join Date
    Nov 2001
    Assuming you are using MFC and SDI, you create a new object from the form class. Call ShowWindow().


  3. #3
    Join Date
    Jun 2003
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. PlaySound
    By cangel in forum C++ Programming
    Replies: 16
    Last Post: 10-08-2009, 05:29 PM
  2. Boom, Headoshot!!
    By mrafcho001 in forum A Brief History of
    Replies: 50
    Last Post: 07-21-2005, 08:28 PM
  3. Accessing main form from functions in other classes
    By pj_martins in forum C++ Programming
    Replies: 1
    Last Post: 11-05-2004, 09:27 AM
  4. My UserControls dissapear off my form
    By zMan in forum C# Programming
    Replies: 2
    Last Post: 09-15-2004, 08:55 AM
  5. making a form to what i build
    By aleminio in forum C++ Programming
    Replies: 3
    Last Post: 06-13-2004, 07:06 AM