Using Forms

All of the previous examples have involved the use of one Windows form. This is the default for new projects you create using the Windows Application template. In fact, however, Windows applications can have any number of forms. Here’s the procedure for adding a new Windows form to any project:

  1. Open the project in Visual Studio .NET.

  2. Right-click the project entry in Solution Explorer. When the shortcut menu appears, select Add and then Add New Item (or, if you prefer, select Add New Item from the File menu).

  3. When the Add New Item dialog box shown in Figure 8-7 appears, click the Windows Form template, enter the name you want in the Name box, and then click Open. This name identifies both the source file and the class that defines the ...

Get Faster Smarter Beginning Programming 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.