How to set the position of ToolWindow withTabbedDocument state?

Docking/MDI for Windows Forms Forum

Posted 11 years ago by Jaruwan Limsukhakorn
Version: 14.1.0321
Avatar

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);
toolwindow.Activate(true);

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 11 years ago]

Comments (2)

Posted 11 years ago by Jaruwan Limsukhakorn
Avatar

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

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

Hello,

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 (v25.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.