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

How to auto-hide a docked window

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

2 Replies

PS Prakash S Syncfusion Team 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


TA Thomas A. Anderson, Program Writer May 21, 2003 03:10 PM

This works, thanks! David

Loader.
Live Chat Icon For mobile
Up arrow icon