Dela via


How to: Add Windows Forms to a Project

Your Windows application may need more than just a main form. The .NET Framework makes it easy to add dialog boxes, startup screens, and other supporting forms.

For information on adding a form that inherits from a type other than System.Windows.Forms.Form, see How to: Inherit Windows Forms.

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 add a Windows Form that inherits from the Form class

  • In Solution Explorer, right-click your project, point to Add, and then click Windows Form.

To add a Windows Form that inherits from a previously created form class

  • In Solution Explorer, right-click your project, point to Add, and then click Inherited Form.

    Note

    You can also add a Windows Form from the Project menu.

See Also

Tasks

How to: Display Windows Forms in the Designer

How to: Set the Screen Location of Windows Forms

Concepts

Additions to Windows Forms for the .NET Framework 2.0

Reference

Windows Forms Overview