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 auto-hide a docked window

Thread ID:

Created:

Updated:

Platform:

Replies:

4565 May 19,2003 09:14 AM May 21,2003 03:10 PM Windows Forms 2
loading
Tags: Tools
Thomas A. Anderson, Program Writer
Asked On May 19, 2003 09:14 AM

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 08:05 AM

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 03:10 PM

This works, thanks! David

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.

;