If you are playing with C++/CLI you are probably already familiar with the C# or VB.NET way of doing WinForms, so there's nothing to be afraid of in CLI -- it is just a bit of pain in the ass at first.
Setting up the project
Assuming that you have C++/CLI installed, fire up Visual Studio and create an empty CLR project. Once the project is created, we need to let Visual Studio know what type of project (WinForms in this case) this is, as well as set an entry point for the application.
Open the project's Properties dialog (Alt+Enter) and select All Platforms from the Platform combo box. After that, you need to:
Define the project type
- Navigate to
Configuration Properties >> Linker >> Systemin the tree-view control on the left side.