Start form maximized [modified]
-
how can i start a form maximized ? -- modified at 23:58 Tuesday 7th August, 2007
-
how can i start a form maximized ? -- modified at 23:58 Tuesday 7th August, 2007
set the window state property on the form to maximized.
-
how can i start a form maximized ? -- modified at 23:58 Tuesday 7th August, 2007
-
If you don't want to set the form to maximized at design time do it in onLoad event: this.WindowState = FormWindowState.Maximized; Toby
also if you want to force the form to remain in maximized state then write its resize event and do the following if not designmode then me.windowstate = formwindowstate.maximized endif
Salman Sheikh
-
If you don't want to set the form to maximized at design time do it in onLoad event: this.WindowState = FormWindowState.Maximized; Toby
[Pitfall] if you do this (in form load you write windowstate = maximized) and then inherit a from from this form it'll create troubles. so first check if it is in designmode if not Me.DesignMode then me.windowstate = Maximized End if
Salman Sheikh