Hiding DocumentWindow?

Docking/MDI for Windows Forms Forum

Posted 12 years ago by shark92651
Avatar
I am trying to hide tabbed DocumentWindow controls but when I call the Hide() method or set the Visible property of the DocumentWindow to false, the contents of the tab page are removed and the tab remains visible.

I can simulate the behavior I desire by un-parenting the form contained by the DocumentWindow and then disposing the DocumentWindow. When I want to show the tabbed form again, I create a new DocumentWindow to parent the form. This takes too long.

Is there a way to hide the tab without disposing it?

Thanks

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes both Hide and Visible are non-overridable members of the Control class so we implemented a Close method you would call to do this instead. However by default Close will dispose document windows.

You can change the DockManager.DisposeDocumentWindowsAfterClose to false to stop that behavior and achieve what you want.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.