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

Get Special Edition Using Microsoft® Visual Basic® .NET 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.