back
Adding Multiple Forms to a Project
Did you know you can have more than one form in a Visual Basic project?


Take a look at the add form button at the top left side of the diagram. All you do is click on it and you can add another form to your project. Then you can see the other form in your Project Explorer Window. (If you don't see it, click on View, then Project Explorer). Whichever form you click on becomes the active form.

You can also add existing forms from earlier projects into one project. There is one problem: If you did not name the forms in your earlier projects (if you left them with the default name of FORM1), you will have a conflict when you try to add the old forms into your new project.

The important point is that all objects on the screen need to have different names including the forms themselves.

Assignment Using Multiple Forms: Part One

  1. Make a new project named "Multiple."
  2. Change the name property of the form to "frmFirst."
  3. Next make three additional forms and name them "frm2" "frm3" and "frm4."
  4. Place a different picture on each form.
  5. Link them to the first form through a menu.
Assignment Using Multiple Forms: Part Two

  1. Make a new project with a form that will be a cover form for your projects. Make it look snazzy with color and graphics. This form will be the starting point for your future projects.
  2. Add at least five of your earlier projects into this project by using the add form (existing button). Before you add them, be sure you have given the forms in your ealier projects unique names starting with frm...
  3. Link everything together with a menu.