Udostępnij za pośrednictwem


How to: Create a Windows Application 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).

Note

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 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 or Visual C# projects, or choose Windows Forms Application (.NET) for Visual C++ projects.

    Note

    In the Name text box, name the project something unique to indicate the application's purpose. In the Location text box, enter the directory in which you want to save your project, or click the Browse button to navigate to it.

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

Visual Basic noteVisual Basic Note:

Every executable file you create with Visual Basic 2005 contains a namespace with the same name as your project. For more information, see Namespaces in Visual Basic.

See Also

Reference

Windows Forms Overview

Other Resources

Arranging Controls on Windows Forms

Dialog Boxes in Windows Forms

Creating a New Windows Form