Thread: Multi-Form?

  1. #1
    Compiling
    Join Date
    Jun 2003
    Posts
    69

    Question Multi-Form?

    Hello all,
    Question again..
    Environment: MS Visual Studio.net 2003
    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, how could I solve the problem? Thanks very much!
    Last edited by NightWalker; 05-07-2004 at 10:56 PM.

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    It's nice to post the error messages you get when a project can not be compiled. I assume you are actually using:
    Code:
    Form2.Show();
    Other than that, we need some error messages.

  3. #3
    Compiling
    Join Date
    Jun 2003
    Posts
    69
    no, I use the statement
    Code:
    Form2::Show();
    It is the 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...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Calling datas from another form?
    By Aga^^ in forum C# Programming
    Replies: 2
    Last Post: 02-06-2009, 02:17 AM
  2. 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
  3. My UserControls dissapear off my form
    By zMan in forum C# Programming
    Replies: 2
    Last Post: 09-15-2004, 08:55 AM
  4. How to build Multi Form?
    By NightWalker in forum Windows Programming
    Replies: 2
    Last Post: 05-08-2004, 09:08 AM
  5. Making an MFC form to suit
    By TJJ in forum Windows Programming
    Replies: 1
    Last Post: 04-17-2004, 11:20 AM