Basically brand new to Visual C++ How do I display two Windows Forms Simultaneously perfer the CLR CLI version of Code
Im Also interested in the MFC version as well
I can only get one window to load at a time
and I am unable to load more than two windows at all. Why is this?
// twoforms.cpp : main project file.
#include
"stdafx.h"
#include "Form1.h"
#include "Form2.h"
#include "Form3.h"
using namespace twoforms;
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
// 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());
Application::OpenForms(gcnew Form2());
Application::OpenForms(gcnew Form3());
return 0;
}