Add New Items to a Project (.NET)

New items such as class modules and Windows forms can be added to a project. You are responsible for updating the properties of an item (such as name) and for filling in the appropriate code. When naming new items, remember that other developers may want to use your items in future applications. Be sure to follow your company’s established naming conventions or the standards established by Microsoft.

Procedures

    To add a new item to your project

  1. In Microsoft Visual Studio, Solution Explorer, right-click the project to which you want to add a new item and click Add New Item.
  2. In the Add New Item dialog box, click Show All Templates.
  3. In the Add New Item - <project> dialog box, select the template that represents the item you want to add.
    • Code File - Represents a code module
    • Window (WPF) - Represents a form (or dialog box)
    • Class - Represents a class module


  4. In the Name text box, select the default name and enter a new name for the item.
  5. Click Add.