Posted 18 years ago
by Gianni Gardini
- Italy
Version: 2.0.0.72
I'm working in "Standard Mode":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)Test 2 (not working)
Test 3 (not working)
I'm working in "Standard Mode":
dockManager.DocumentMdiStyle = DocumentMdiStyle.Standard;
dockManager.DefaultMdiWindowState = FormWindowState.Normal;
.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.Activate();
dw.SetBounds(dw.Location.X, dw.Location.Y, mySize.Height, mySize.Width);
dw.Activate();
dw.Height = mySize.Height;
dw.Width = mySize.Width;
dw.Activate();
dw.Size = mySize;