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.

Restricting docking to left and right sides

Thread ID:

Created:

Updated:

Platform:

Replies:

24544 Feb 7,2005 05:24 AM Apr 4,2005 12:58 PM Windows Forms 3
loading
Tags: Tools
Guillem
Asked On February 7, 2005 05:24 AM

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 10:28 AM

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 06:35 AM

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 12:58 PM

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.

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.

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.

;