DocumentWindow: how can I set size?

Docking/MDI for Windows Forms Forum

Posted 15 years ago by Gianni Gardini - Italy

I'm working in "Standard Mode":
dockManager.DocumentMdiStyle = DocumentMdiStyle.Standard;
dockManager.DefaultMdiWindowState = FormWindowState.Normal;
When I create a new DocumentWindow, the starting default size is always:
.Size = {Width=292 Height=266}

How can I set a default start size?

I'm trying various methods with no effects.

Test 1 (not working)

DocumentWindow dw = new DocumentWindow(this.dockManager, title, title, image, childControl);
dw.SetBounds(dw.Location.X, dw.Location.Y, mySize.Height, mySize.Width);
Test 2 (not working)

dw.Height = mySize.Height;
dw.Width = mySize.Width;
Test 3 (not working)

dw.Size = mySize;

Comments (2)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Hi there, you can use the StandardMdiBounds property of the DocumentWindow to control where it is and what size.

Actipro Software Support

Posted 15 years ago by Gianni Gardini - Italy
it seems to work.
The latest build of this product (v21.1.0) was released 17 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.