Walkthrough: Creating a Simple Windows Form
In this walkthrough you will build and run a simple Windows Form.
The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.
To create a Windows Form
To write the code for your application
Double-click the button to add an event handler for the Click event. The Code Editor will open with the insertion point placed within the event handler.
Insert the following code:
To test your application
Press F5 to run the application.
When your application is running, click the button and verify that "Hello, World!" is shown.
Close the Windows Form to return to Visual Studio.