We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

docking to mdi child

Thread ID:

Created:

Updated:

Platform:

Replies:

68489 Sep 23,2007 05:01 PM Sep 25,2007 05:56 AM Windows Forms 1
loading
Tags: Tools
kaiser
Asked On September 23, 2007 05:01 PM

hi

I have an mdi parent with a docking manager on it(dockingManager1) and multiple mdi children. I am trying to dock a control to child forms using the following code:

TextBox myText = new TextBox();
myText.Parent = this.ActiveMdiChild;
myText.Show();
this.dockingManager1.DockControl(myText, this.ActiveMdiChild, Syncfusion.Windows.Forms.Tools.DockingStyle.Bottom, 200);

is it not possible to dock controls to mdi children from mdi parent?

Thanks,

Jisha Joy [Syncfusion]
Replied On September 25, 2007 05:56 AM

Hi Kais,

Thank you for your interest in Syncfusion Products.

When the host control of the DockingManager to a form, then it can be used to dock controls to that form only.

If we want to dock any control to the MDI child from MDI parent then the MDI child object must be assigned as the HostControl of the DockingManager
Here is the code snippet.

this.dockingManager1.HostControl = this.ActiveMdiChild;
this.dockingManager1.DockControl(myText, this.ActiveMdiChild, Syncfusion.Windows.Forms.Tools.DockingStyle.Bottom, 200);


Let me know if you have any questions

Regards,
Jisha

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;