Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

372 Part III Designing the User Interface



  1. Click Add to add the second form (Form2 .vb) to Solution Explorer.

  2. 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.


  1. 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.


  1. Click the Close button to close the Project Designer.

  2. Click the Start Debugging button.


The program runs in the development environment, and Form2 opens.


  1. Click the Close button on the form to end the program.

  2. 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.

Free download pdf