Using Object Templates

When you choose to add a new object, such as a Windows Form, to a project, Microsoft Visual Basic .NET displays a dialog box from which you can select an existing object or create a new object. (See Figure 1-1.) Although Visual Basic ships with a number of predefined object templates (most notably a number of form templates), you aren’t limited to just those that are provided. Any standard object (for example, a module or class) you create and save in Visual Basic can be made into an object template.

Figure 1-1. The Add New Item dialog box displays the templates available on the computer.

When Visual Basic displays ...

Get Practical Standards for Microsoft® Visual Basic® .NET, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.