Skip to content

Instantly share code, notes, and snippets.

@izanbf1803
Created August 31, 2017 13:58
Show Gist options
  • Save izanbf1803/21749e7769a553e3dccf527155e5075f to your computer and use it in GitHub Desktop.
Save izanbf1803/21749e7769a553e3dccf527155e5075f to your computer and use it in GitHub Desktop.
Default main() code required to initialize CLR UI Windows Forms with Visual Studio.
#include "[FORM NAME].h"
using namespace System;
using namespace System::Windows::Forms;
[STAThread]
void main(array<String^>^ args)
{
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
[PROJECT NAME]::[FORM NAME] form;
Application::Run(%form);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment