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.

Set window to dock only

Thread ID:





6540 Aug 15,2003 12:33 PM Oct 18,2005 09:42 AM Windows Forms 4
Tags: Tools
Bradley A. Smith
Asked On August 15, 2003 12:33 PM

Is there a way to set a window to only dock?

Administrator [Syncfusion]
Replied On August 18, 2003 02:29 PM

Hi Brad, The docking windows can be set to only dock by setting the DisallowFloating property of the docking manager to True. Regards, Guru Patwal.

Administrator [Syncfusion]
Replied On August 19, 2003 06:03 AM

Setting the DockingManager.DisallowFloating property will disable floating capability at the DockingManager’s level ie., all dockable controls hosted by the DockingManager will be rendered non-floatable. If you want to keep the non-floating behavior exclusive to a particular control/controls then this has to be done by handling the DockingManager.DragAllow event and if the DragAllowEventArgs.Control param references the particular control then the event should be cancelled by setting the DragAllowEventArgs.Cancel value. Regards, Guru Patwal.

Administrator [Syncfusion]
Replied On October 17, 2005 05:01 AM

Setting the DragAllowEventArgs.Cancel implies that even normal docking is not possible any more. Is there a way to disallow floating for one specific control without losing the capability to drag this control to another docking position. Thank you.

Vijayanand S [Syncfusion]
Replied On October 18, 2005 09:42 AM

Hi, Currently the DisallowFloating property of the docking manager can only be applied to all the controls in the docking manager. I have created a feature request with the development team to add a new method , something like SetDisallowFloating(Control cont) that would disable the specified control from floating but would still allow docking. We will try to implement this feature as soon as possible. Thanks for using Syncfusion Products. Regards, Vijay


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.