Home All Groups Group Topic Archive Search About

How to maximize the form on open?

Author
11 Jan 2006 3:38 AM
Steven
I have a form which contains a maximize box at the top, I want to know how
can I maximize this form once the form is initialized? Thanks!

Author
11 Jan 2006 5:56 AM
Cyril Gupta
Put this in your Form.Load event

Me.Windowstate = FormWindowState.Maximized

Cyril
Author
11 Jan 2006 11:35 AM
Herfried K. Wagner [MVP]
"Cyril Gupta" <nom***@mail.com> schrieb:
> Put this in your Form.Load event
>
> Me.Windowstate = FormWindowState.Maximized


In addition:  This property can be set at design time too.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>