Programatically autohiding and unautohiding a tool window

DockableWindow/TabStripPanel for Windows Forms Forum

Posted 20 years ago by Adamczak - Developer, AAA Software Enterprises
Avatar
Is there a way to programatically un-autohide a docked tool window?

I have the following code for programatically autohiding the window (and it seems to work):

if (parent.Docked && !parent.Attached && parent.State == DWToolWindowState.Dockable) {
    parent.State = DWToolWindowState.AutoHide;
}
parent is a DWToolWindow.

When I try to do the opposite:

if (parent.Docked && !parent.Attached && parent.State == DWToolWindowState.AutoHide) 
{
    parent.State = DWToolWindowState.Dockable;
}
the window unhides, but it also undocks and starts floating. I want it to redock to where it was before it was hidden. Is there a way to do this?

Comments (1)

Posted 20 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
I would think that what you were doing would redock in the correct spot. I'll look into this.


Actipro Software Support

The latest build of this product (v2.0.0208) was released 19 years ago, which was after the last post in this thread.