open a Form

This is a discussion on open a Form within the Windows Programming forums, part of the Platform Specific Boards category; When you are creating Windows Forms and for example my mainform is called Form1 and within this form I will ...

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    383

    open a Form

    When you are creating Windows Forms and for example my mainform is called Form1 and within this form I will open Form2 like the code below wich works fine.

    When you run the program and press a button, Form2 will open. What happens is that another window opens also in the "Taskbar" on the desktop.
    Is this possible to do.

    Code:
    private: Form2 form2instance;
    
    this->form2instance.ShowDialog();
    Last edited by Coding; 02-15-2008 at 04:40 PM.

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, 08: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, 08:10 PM
  3. open empty file
    By mystic-d in forum C Programming
    Replies: 2
    Last Post: 11-16-2007, 10:27 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 10:54 AM
  5. To open or not to open ?
    By darfader in forum C Programming
    Replies: 7
    Last Post: 09-24-2003, 09:14 AM

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