#include "MyForm.h" using namespace System; using namespace System::Windows::Forms; [STAThreadAttribute] void main(array^ args) { Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); MyProject::MyForm form; Application::Run(% form); }