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.

How to prevent dockable window from floating?

Thread ID:





3170 Mar 6,2003 09:42 AM Mar 7,2003 07:33 AM Windows Forms 2
Tags: Tools
Thomas A. Anderson, Program Writer
Asked On March 6, 2003 09:42 AM

Is there a way to prevent a user from floating a dockable window? I'm responding to the DockAllow event, but this event is never fired when the user moves a window from a docked state to a "floated" state. For this reason, I never have a chance to set the Cancel property to true. Any ideas?

Charles Wolfersberger
Replied On March 7, 2003 02:24 AM

Have you looked at the DragAllow event? Chuck

Thomas A. Anderson, Program Writer
Replied On March 7, 2003 07:33 AM

Ah, I must have missed that. Seems to work. Thanks.


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.