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:
Select Project, Add Windows Form from the Visual Basic .NET menu system. Name the form frmChild before clicking Open.
Drag a MainMenu control to frmChild, and create the File menu and its submenu items as follows: