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.
Syncfusion Feedback

SetDockAbility

Thread ID:

Created:

Updated:

Platform:

Replies:

73380 May 5,2008 10:23 AM UTC May 12,2008 03:06 PM UTC Windows Forms 2
loading
Tags: Tools
Eric Ferro
Asked On May 5, 2008 10:23 AM UTC

Hi
I want to limit the dock ability of a control to the left and right side.
So i do this :

this.dockingManager1.SetDockAbility(this.groupBar1, DockAbility.Right | DockAbility.Left);

But the control can still be dock anywhere.
Why ?


Administrator [Syncfusion]
Replied On May 9, 2008 06:57 AM UTC

Hi Eric,

Thank you for using Syncfusion products.

You can use SetOuterDockAbility method instead of SetDockAbility. The following code snippet is used to dock the control only to the right.

[C#]
dockingManager1.SetOuterDockAbility(this.panel1, Syncfusion.Windows.Forms.Tools.DockAbility.Right);

Please refer the below sample that illustrates the same.

http://websamples.syncfusion.com/samples/Tools.Windows/F73380/main.htm

Please let me know if this helps you.

Regards,
Jaya


Eric Ferro
Replied On May 12, 2008 03:06 PM UTC

Works perfectly.


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

;