ARTICLE

Create a MDI Parent Form in VS 2008

Posted by Dinesh Beniwal Articles | Visual Basic Language July 10, 2010
In this article you will learn how to Create a MDI Parent Form in VS 2008.
Download Files:
 
Reader Level:

Multiple-Document Interface (MDI) application is the MDI parent form. MDI applications must have at least two forms, the parent form and one or more child forms. In MDI you can make many child forms but only one parent Form.The Parent form is the MDI Form because its contains all child forms.

How To create an MDI parent form at design time

  1. Create a Windows Application project.

    • Start Visual Studio 2010.
    •  
    • On the File menu, Select new Project.
       
    • The New Project dialog box will come.
       
    • In the Installed Templates pane, Select Visual Basic, and then select Windows.
       
    • Above the middle pane, select the target framework from the drop-down list.
       
    • In the middle pane, select the Windows Forms Application template.
       
    • In the Name text box, specify a name for the project like MDI Form.
       
    • In the Location text box, specify a folder to save the project.
       
    • Click OK.

  2. In the Properties window, set the ISMDIContainer property to true.

    MDI1.gif

    This designates the form as an MDI container for child windows.
     

  3. From the Toolbox, drag aMenuStrip component to the form. Create a top-level menu item with the Text property set to &File with submenu items calledNew, open, save and &Close.

    MDI2.gif

    And create a top-level menu item called Window and sub menu items called New Window, Open Window .

    MDI3.gif

    The first menu will create and hide menu items at run time, and the second menu will keep track of the open MDI child windows. At this point, you have created an MDI parent window.  

  4. Press F5 to run the application.

    MDI4.gif

    In next article I will discuss about how to create MDI child forms.

Login to add your contents and source code to this article
share this article :
post comment
 

Thanks for mdi

Posted by Chaturbhuj Jat Apr 03, 2011

I read your article and made a govt school software. I'm a govt teacher.Thanks sir.

Posted by Chaturbhuj Jat Mar 22, 2011

Create the same app and screens in VS 2010.

Posted by Mahesh Chand Jul 10, 2010
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Team Foundation Server Hosting
Become a Sponsor