372 Part III Designing the User Interface
- Click Add to add the second form (Form2 .vb) to Solution Explorer.
- Click My Startup Form Properties on the Project menu.
The Project Designer opens, as shown here:
The Project Designer lets you adjust settings that apply to the entire project in one
place. Here you’ll use the Application tab and the Startup Form list box to specify a new
startup form.
- On the Application tab, click the Startup Form arrow, and then click Form2.
Visual Basic changes the startup form in your project from Form1 to Form2. When the
program runs, Form2 will be displayed, and Form1 will appear only if it’s opened using
the Show or ShowDialog method.
- Click the Close button to close the Project Designer.
- Click the Start Debugging button.
The program runs in the development environment, and Form2 opens.
- Click the Close button on the form to end the program.
- Close the project, and discard your changes—it is not necessary to save this simple
demonstration project, and you’re finished managing forms for now.