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.

Closing Child Controls with Host Control

Thread ID:





77239 Oct 22,2008 05:48 AM Apr 2,2018 01:31 PM Windows Forms 2
Tags: DockingManager
Suhail Shaikh
Asked On October 22, 2008 05:48 AM

Hi ,

I have a DockingManager , which hosts 3 child controls. I would like to know the way to close all the floating child controls when the Host Control is closed.

Thank you,

Fathima Shalini P [Syncfusion]
Replied On October 23, 2008 07:01 AM

Hi Suhail,

Thank you for your interest in Syncfusion Products.

I am not much clear about your exact requirement, because when the HostControl of the docking manager is closed all the controls will be closed by default. If your intention is to close the controls when a particular control is closed, it is possible using SetDockVisibility() method.

private void dockingManager1_DockVisibilityChanging(object sender, Syncfusion.Windows.Forms.Tools.DockVisibilityChangingEventArgs arg)
if (arg.Control == this.panel1)
this.dockingManager1.SetDockVisibility(this.panel2, false);
this.dockingManager1.SetDockVisibility(this.panel3, false);

Please refer to the below sample that illustrates this:


If I have misunderstood your requirement, could you please let me know in detail of your requirement so that I could work out in depth and provide you a better solution?

Please let me know if any concerns.


Replied On April 2, 2018 01:31 PM



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.