Document Window -> Tool Window

Docking/MDI for Windows Forms Forum

Posted 19 years ago by Mike
I just discovered that it is possible to drag a tool window into the MDI Client area so that it automatizally becomes a document window. I have two questions:
1) Is it possible to do this programmatically (if so how)?
2) Is it possible to change a document window back into a tool window? I haven't been able to do this by dragging.


Comments (1)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
1) Absolutely... set ToolWindow.State = ToolWindowState.TabbedDocument.

2) No, document windows are limited to the MDI area and typically have a lifetime of just while they are visible whereas tool windows can be moved anywhere in the dock system or in MDI and are saved via layouts. So in that sense they are different and document windows cannot be changed into a tool window. If you want those capabilities, I recommend using all tool windows and just starting them off in the TabbedDocument state.

Actipro Software Support

The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.