How to set the position of ToolWindow withTabbedDocument state?

Docking/MDI for Windows Forms Forum

Posted 5 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 5 years ago]

Comments (2)

Posted 5 years ago by Jaruwan Limsukhakorn
Avatar

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

Answer - Posted 5 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 (v2020.1 build 0400) was released 3 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.