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

How to auto-hide a docked window

Thread ID:





4565 May 19,2003 01:14 PM UTC May 21,2003 07:10 PM UTC WinForms 2
Tags: Tools
Thomas A. Anderson, Program Writer
Asked On May 19, 2003 01:14 PM UTC

When a control is docked against a border for the first time, I want the default auto-hide mode to be 'true' instead of the default which is 'false.' In other words, the docked control should immediately collapse into the little auto-hide box. SetAutoHideMode() works in so far as the "pin" button is now unpinned, but the user is then forced to click somewhere else in the application in order for the docked control to actually hide itself. I don't want to force the user to perform this extra click. How can I instruct the docked control to actually hide itself [not just set the mode of the autohide button]. I've tried setting the focus to another control to fool the docker into hiding the control, but this doesn't work. Just to be clear, I'm not trying to destroy the control or make it invisible. I'm trying to autohide it so that its caption appears in the docking border. David "Garbonzo Bean" Sworder

Prakash S [Syncfusion]
Replied On May 21, 2003 12:05 PM UTC

Hi David, If your application is being launched with the designer set layout and you want a control to be in the autohide mode to begin with, then you could just set the AutoHideOnLoad extended property within the designer to be TRUE. On the other hand, if this is something that you are attempting at runtime, then follow up your DockingManager.SetAutoHideMode(Control, bool) call with a HideAutoHiddenControl(). This will force the control into the hidden autohide state. Prakash Syncfusion

Thomas A. Anderson, Program Writer
Replied On May 21, 2003 07:10 PM UTC

This works, thanks! David


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