Docking Manager and MDI Forms

2 posts, 0 answers
  1. U4
    U4 avatar
    13 posts
    Member since:
    Oct 2012

    Posted 03 Aug 2007 Link to this post

    In SP2 Q1 2007, The DockingManager has a Form[] MdiChildren property which is the same as Form MdiChildren. It gets an array of forms that represent the multiple document interface (MDI) child forms that are parented to this docking manager.

    Can someone explain how a child windows form is parented to a Docking Manager? 

    Does it mean that now we can place a window Form into tabbed document's panel, without using UserDockForm class?

    Any sample of coding on how to implement above and how to interate the mdi chidren forms.  Appreciate if you can show how to use MdiChildren property and ActivateMdiChild method.

    Thanks a lot.
  2. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 03 Aug 2007 Link to this post

    Hello Pss, DockingManager has a AutoDetectMdiChildForms property and when it set to true and it's parent Form  IsMdiContainer property is set to true, DockingManager automatically manage Mdi Children forms.  In your form you can use following snippet:

    Form form = new Form(); 
    form.Text = "Report2"
    form.MdiParent = this

    Child form is automatically shown in Tabbed document interface of DockingManager. MdiChildren property returns all child forms like Form MdiChildren property. Every child form is hosted in DocumentPane instance, and can be  accessed by MdiChild property of DocumentPane object. In our SP2 release MdiChild property may be internal; in this case you can download our custom build:

    I hope this helps.

    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top