Document Window -> Tool Window

Docking/MDI for Windows Forms Forum

Posted 18 years ago by Mike
Avatar
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.

Thanks,
Mike

Comments (1)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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 25 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.