Windows Forms: Getting Started I

If you like this post, please visit our sponsors above. Thanks!

This tutorial contains some basic topics regarding getting started with  windows forms.

All the data is courtesy MSDN.


Creating a Windows Forms Project

The foundation of most solutions that involve Windows Forms is the Windows Application project. Creating a project is easy within the integrated development environment (IDE).

To create a Windows Application project
  1. On the File menu, point to New, and then select Project.

  2. In the Project Types pane, choose the programming language you want to use.

  3. In the Templates pane, choose Windows Application for Visual Basic, Visual J#, or Visual C# projects, or choose Windows Forms Application (.NET) for Visual C++ projects. We will mostly concern ourselves with C++.

    The Windows Forms Designer opens, showing Form1 of the project you created.

Display Windows Forms in the Designer

Within the Windows Forms Designer, you can view the forms within your project and their controls.

To view forms in the Windows Forms Designer
  • In Solution Explorer, double-click the form. For details, see Windows Forms Overview.

    If Solution Explorer is not visible, select it from the View menu or press CTRL+W, S.

To view the code for a form
  • In Solution Explorer, select the form and then click the View Code button. You can also right-click the form in Solution Explorer and choose the View Code item in the shortcut menu.

If the designer has focus, press F7 to switch to the Code Editor.

Next

If you like this post, please visit our sponsors blow. Thanks!

Leave a Reply