Hi,
I would like to know which event to capture to resize a form to a specific height and width.
My form has the follwoing set : FormBorserStyle -> Fixed3D. WindowState = normal.
In the constructor I set:
Me.Height = (SystemInformation.Primary
MonitorSiz
e.Height) * (0.9)
Me.Width = (SystemInformation.Primary
MonitorSiz
e.Width) * (0.9)
Me.MaximumSize = New System.Drawing.Size(Me.Wid
th, Me.Height)
Me.MinimumSize = New System.Drawing.Size(800, 600)
I tried using Resize, Layout and sizeChanged.
If me.windowstate = windowstate.maximized then
'set the size
But none of the events fire when I click on the maximize box. The desired result is to toggle between the 0.9 of monitor size AND the specific size of width 800 and height 600.
Thanks,
Gauri
Start Free Trial