This is a migrated thread and some comments may be shown as answers.

Docking Manager and MDI Forms

1 Answer 220 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 03 Aug 2007, 10:30 AM
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.

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 03 Aug 2007, 12:02 PM
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
form.Show(); 

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:http://www.telerik.com/t3mp0m@t/2expire/RadControlsForWinForms.exe

I hope this helps.

Regards,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Andy
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or