creating multiple instances of a form
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: creating multiple instances of a form

  1. #1
    Join Date
    Jun 2009
    Location
    Frederick, MD
    Posts
    2

    Question creating multiple instances of a form

    I am looking for a way to create multiple instances of a single form in c++. I am using Visual C++ 2008 edition. When i start a new Windows Forms Application it starts me with the needed .h and .cpp files.

    As of right now the form.h file handles the majority of the processing and the main only contains:

    // Enabling Windows XP visual effects before any controls are created
    Application::EnableVisualStyles();
    Application::SetCompatibleTextRenderingDefault(false);

    // Create the main window and run it
    Application::Run(gcnew Form1());

    I know the Run command only allows 1 form to execute at a time. What I am looking for is a way to create multiple instances of the form, based on a certain variables value preferably.

  2. #2
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: creating multiple instances of a form

    [ redirected ]
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  3. #3
    Join Date
    Jul 2002
    Posts
    2,513

    Re: creating multiple instances of a form


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center