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
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.
TAThomas A. Anderson, Program WriterMay 21, 2003 03:10 PM