maximize forms

  • Thread starter Thread starter Thomas
  • Start date Start date
T

Thomas

I can set the maximizeBox property. But I didn't find a method to maximize a
MDI child form.
So I must do a duoble click at the maximize box.

Anybody know a maximize function or method?

Thank in advance
Thomas
 
There is no such method.
You have to obtain the screen size by gettings Bounds property of the
PrimaryScreen object and set the Size of the Form manually. (If it is MDI
Form, you set the size to the size of the parent Form minus the Caption
size.
 
Thomas said:
I can set the maximizeBox property. But I didn't find a method to maximize a
MDI child form.
So I must do a duoble click at the maximize box.

Anybody know a maximize function or method?

Thank in advance
Thomas

myForm.WindowState = FormWindowState.Maximized;

Regards,
Daniel
 
Hi Thomas.

set the mdiChild form WindowState property to
System.Windows.Forms.FormWindowState.Maximized

e.g:

foreach (Form form in this.MdiChildren)

form.WindowState = System.Windows.Forms.FormWindowState.Maximized;


Picho
 
Hi Thomas.

set the mdiChild form WindowState property to
System.Windows.Forms.FormWindowState.Maximized

e.g:

foreach (Form form in this.MdiChildren)
form.WindowState = System.Windows.Forms.FormWindowState.Maximized;


Picho
 
Back
Top