Wednesday, 5 June 2013

How can you create MDI forms in VB.NET?

Creating MDI (Multiple Document Interface):

An application allows to work on multiple files and where the user needs to work with several documents at one time.Such applications contain a parent form as container form and other child forms.
 Follow the steps mentioned below:


  • To make a form as MDI Form set its ' IsMdiContainer' property as true.
  • To define a parent form to a child form set ' MdiParent' property.        
  • To arrange the child forms, use 'LayoutMdi()' method.       
  • To get reference of the current child form use ' ActiveMdiChild' property.         
  • To get reference of a control from the child form use its Controls collection.