O'Reilly logo

Special Edition Using Microsoft® Visual Basic® .NET by Jeff Spotts, Brian Siler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the Child Form Template

Now that you have created the parent form, let’s continue by creating a template for the child form. In essence, we will be creating a child form class at design time; later, at runtime, the application will create instances of the child form class as necessary.

The child form template will contain a single TextBox control whose properties are set to cause it to completely fill the form.

To create the child form template, follow these steps:

1.
Select Project, Add Windows Form from the Visual Basic .NET menu system. Name the form frmChild before clicking Open.
2.
Drag a MainMenu control to frmChild, and create the File menu and its submenu items as follows:
Name Text Shortcut
mnuFile File 
mnuFileSave Save ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required