CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Frederick, MD

    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

    // 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
    Timisoara, Romania

    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

    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

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.