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

Restricting docking to left and right sides

Thread ID:





24544 Feb 7,2005 10:24 AM UTC Apr 4,2005 04:58 PM UTC WinForms 3
Tags: Tools
Asked On February 7, 2005 10:24 AM UTC

Hello, is there a way to modify the behavior of a dockable control, so that the control can only be docked on the right and/or left side of its parent MDI form ? Thanks in advance

Administrator [Syncfusion]
Replied On February 7, 2005 03:28 PM UTC

Hi Guillem, There is a way to control docking behavior, the DockAllow event. The following code snippet from the user''s guide demonstrates this: // DockingManager.DockAllow event handler private void dockingManager1_DockAllow(object sender, Syncfusion.Windows.Forms.Tools.DockAllowEventArgs arg) { // Disallow all controls from being docked to the host Form''s left border if((arg.TargetControl == this) && (arg.DockStyle == Syncfusion.Windows.Forms.Tools.DockingStyle.Left)) arg.Cancel = true; } Hope this helps. Regards, Gregory Austin Syncfusion, Inc.

Stephan Hofmann
Replied On April 3, 2005 10:35 AM UTC

Hello, the given solution before is not working if the docking manager property DockToFill is set to TRUE. Then, you will always get "Fill" as checking value which doesn''t make sense in this situation.

Administrator [Syncfusion]
Replied On April 4, 2005 04:58 PM UTC

Hi Stephan, I''ve checked this in our latest version and didn''t notice the behavior you''ve described. I''d recommend upgrading when we release v3.2 later this week, as it fixes a number of issues with Docking. Regards, Gregory Austin Syncfusion Inc.


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