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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Closing Child Controls with Host Control

Thread ID:

Created:

Updated:

Platform:

Replies:

77239 Oct 22,2008 09:48 AM UTC Apr 2,2018 05:31 PM UTC WinForms 2
loading
Tags: DockingManager
Suhail Shaikh
Asked On October 22, 2008 09:48 AM UTC

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,
Suhail


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

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:

http://websamples.syncfusion.com/samples/Tools.Windows/F77239/main.htm

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.

Regards,
Fathima




abd
Replied On April 2, 2018 05:31 PM UTC

-

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.

Warning Icon 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.Close Icon

;