How to set the position of ToolWindow withTabbedDocument state?

Docking/MDI for Windows Forms Forum

Posted 10 years ago by Jaruwan Limsukhakorn
Version: 14.1.0321

I create a ToolWindow programmatically, change state to TabbedDocument and activate it. dockManager1.DocumentMdiStyle is set to Standard.

ToolWindow toolwindow = new ToolWindow();
toolwindow.DockManager = dockManager1;
toolwindow.State = ToolWindowState.TabbedDocument;
toolwindow.Location = new Point(70, 70);

The window is still not moved to the position I want to. I have been searching around but still can't find the answer.

[Modified 10 years ago]

Comments (2)

Posted 10 years ago by Jaruwan Limsukhakorn

I found it. Set the bounds in ToolWindow.StandardMdiBounds.

Answer - Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA


Yes, that is correct.  You want to set the StandardMdiBounds property since that is what determines the bounds in a standard MDI 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.