4 Jul '15

Anupa Manipal

A professional Software Developer in VB.NET - SQL Server and learner of PHP. Expertise in implementation of various projects including designing, development, coding and implementation of software applications.

0 Shares

Creating MDI Parent Form in VB.NET

Creating MDI Parent Form in VB.NET

This lesson will explain you to Creating MDI Parent Form in VB.NET. MDI stands Multiple Document Interface (MDI)and this is the container which holds the MDI child windows forms that means all the sub windows opens in the MDI parent form. The MDIParent Form is a form with some advanced features which has Menu strip, Toolstrip, Statusstrip, Tooltip, etc.


How to Create MDI Parent form:

mdi parent form example

  1. First create new windows application project. Here you will get the default form.
  2. In the Project menu click on MDI Parent Form. Put the name to MDI parent form and click on add button. This will create new MDI parent form. The MDI form will open with Menustrip, Toolstrip, status strip.
  3. Delete all existing menus and tool strip items.
  4. Then add toolstrip and menu strip items. Adding menus and toolstrip items very simple in MDI form.

In the menu click event add the following code:

.MdiParent = Me : This will set the Parent Form of the Child window. This will add sub forms under parent form. Any windows form can become child form.

With – End With Statement :  is used to execute a series of statements that repeatedly points to the single object. Its not a looping statement.


Example Source Code:


Video Tutorial:

The following video tutorial shows a MDI form with two child forms. Hope you understand creating MDI Parent form by watching this video.


Download Example Source Code:

The source code has example code that we created while preparing video tutorial. Hope this helps you.

download

About Anupa Manipal

A professional Software Developer in VB.NET - SQL Server and learner of PHP. Expertise in implementation of various projects including designing, development, coding and implementation of software applications.

Related Posts

Leave a Reply