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 : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Removing ctrl from DockingManager

Thread ID:

Created:

Updated:

Platform:

Replies:

40718 Feb 10,2006 02:39 PM UTC Feb 10,2006 04:18 PM UTC WinForms 1
loading
Tags: Tools
Dave Sausville
Asked On February 10, 2006 02:39 PM UTC

Syncfusion 3.2.1.0 Is there a way to know when the user closes a ctrl that has been added to the docking manager? I need to actually close & remove the control when this occurs, not just hide it (which I understand to be the default behavior for the DockingManager). Any help you can provide will be greatly appreciated. Thanks, Dave

Vijayanand S [Syncfusion]
Replied On February 10, 2006 04:18 PM UTC

Hi Dave, You could use the DockVisibilityChanged event to know the control visibility status. This event triggers after the controls visibility has changed (i.e when you click on the ''x'' button of the docking windows). And also dockingManager.GetDockVisibility(ctrl) method to know the current status of the docking window. You coud use this following code snippet to remove the control when it hides: private void dockingManager1_DockVisibilityChanged(object sender, Syncfusion.Windows.Forms.Tools.DockVisibilityChangedEventArgs arg) { if(!this.dockingManager1.GetDockVisibility(arg.Control)) { this.dockingManager1.SetEnableDocking(arg.Control,false); arg.Control.Dispose(); } } I hope this resolves your requirement. Please let me know if you have any questions. Thanks for using Syncfusion Products. Regards, Vijay

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

;