Open New Form

This is a discussion on Open New Form within the Windows Programming forums, part of the Platform Specific Boards category; I have a button that i want the user to press and then it will open another form, but i ...

  1. #1
    Is Trying to Learn
    Join Date
    Mar 2006
    Location
    Hutton, Preston
    Posts
    215

    Open New Form

    I have a button that i want the user to press and then it will open another form, but i am unsure what the code is i need to use. at the moment i am trying

    Code:
    Form2->Show();
    but this is not working so can anyone help me with this?

    i am using C++ Borland Builder 6

    Thanks

  2. #2
    A.I Programmer
    Join Date
    Mar 2007
    Location
    Teresina - Brazil
    Posts
    47
    Code:
    #include "Unit2.h"
    //(...)
    
    Form2->Show();

  3. #3
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,597
    Code:
    if(hMFC == BAD_NEWS) pszLocalPlanet = "Earth";
    else pszLocalPlanet = "Cheese";

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    Quote Originally Posted by Yarin View Post
    Code:
    if(hMFC == BAD_NEWS) pszLocalPlanet = "Earth";
    else pszLocalPlanet = "Cheese";

    LOL!

    Borland Builder is not MFC, only MS IDE's support MFC.....

    You think all WIN32 wrappers (ie Delphi) are bad as well or just biased against MS ones?
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open a Form within a Form
    By Coding in forum Windows Programming
    Replies: 3
    Last Post: 01-29-2008, 07:13 PM
  2. Open Software License 3.0 Explained
    By laserlight in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 01-08-2008, 07:10 PM
  3. open empty file
    By mystic-d in forum C Programming
    Replies: 2
    Last Post: 11-16-2007, 09:27 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. To open or not to open ?
    By darfader in forum C Programming
    Replies: 7
    Last Post: 09-24-2003, 08:14 AM

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