Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form will not maximize when window state property is set to maximized

Status
Not open for further replies.

EdEpis

Programmer
Apr 23, 2003
3
US
My form opens in a maximized state on my 17 inch monitor just fine, but when the user opens the form on his 19 inch monitor, which is set to a higher resolution, the window restore control shows as if the form has been maximized, but it's only about 2 inches by 6 inches on the screen. If the user clicks the restore control, then the maximize control shows, once that is clicked, then the form fills the screen. How do I get this form to maximize when it's loaded? I would appreciate any help on this rookie problem.
Thanks in advance!
 

Set the WindowState to Maximized after InitializeComponent()

#Region " Windows Form Designer generated code "

Public Sub New()
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call
MyBase.WindowState = FormWindowState.Maximized
End Sub

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top