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
- In Microsoft Visual Studio, Solution
Explorer, right-click the project to which you want to add a new
item and click Add
New
Item.
Instead of clicking New
Item, you can also click Windows Form, Module (VB.NET only), or
Class to add one of the main types of items to a project.
- 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
- Windows Form -
Represents a form (or dialog box)
- Class - Represents
a class module
- Enter a name for the new item and click
Add.