Here is how to create gui based project
Select Visual C++ CLR and CLR Empty Project
and type in Sample1 for the project name. The, OK.
Project->Add New Item... .
Select UI under Visual C++.
Leave the Form name as given by default MyForm.h
Then, click Add.
Now we need to change MyForm.h
The System namespace provides functions to work with UI controls.
At the right-mouse click on Sample1, we get the Properties window.
Select Windows (/SUBSYSTEM:WINDOWS) for SubSystem.
Advanced->Entry Point, type in Main.
Then, hit OK.
Hit F5, then we will have to run result, the Form.