Creating the Parent Form for the Sample Application

Let’s begin working on the sample application by creating an MDI parent form, which will contain the other forms in the application as well as common menu items:

1.
Start by creating a new Windows Application project. Name the project MDIDemo.
2.
Click Form1.vb in the Solution Explorer window; then change its File Name property in the Properties window to frmParent.vb.
3.
Right-click the form’s Designer window, and then select View Code from the context menu. Rename the form by changing Public Class Form1 at the top of the Code window to Public Class frmParent. (It is possible that the name of the class was changed for you when you changed the File Name property in the previous step.)

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.