How to build Multi Form?

This is a discussion on How to build Multi Form? within the Windows Programming forums, part of the Platform Specific Boards category; Original Post in C++ Board: Hello all, Question again.. Environment: MS Visual Studio.net 2003 VC++>>Windows Form Applications (.net) I would ...

  1. #1
    Compiling
    Join Date
    Jun 2003
    Posts
    69

    How to build Multi Form?

    Original Post in C++ Board:

    Hello all,
    Question again..
    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:
    Code:
    Form2::Show();
    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
    Posts
    1,348
    Assuming you are using MFC and SDI, you create a new object from the form class. Call ShowWindow().

    Kuphryn

  3. #3
    Compiling
    Join Date
    Jun 2003
    Posts
    69
    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 Cprogramming.com
    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, 08: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21