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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Set window to dock only

Thread ID:





6540 Aug 15,2003 04:33 PM UTC Oct 18,2005 01:42 PM UTC WinForms 4
Tags: Tools
Bradley A. Smith
Asked On August 15, 2003 04:33 PM UTC

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

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

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 10:03 AM UTC

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 09:01 AM UTC

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 01:42 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon