I have searched the forms and there are several places that talk about this but I cant get it to work. I just need to know what resolution the user has set. This is what I have found other places but the Screen keeps comming up undeclared?
sArea = "Screen"......
Dim sArea As System.Drawing.Rectangle
sArea = Screen.PrimaryScreen.WorkingArea()
'Bigger than Required?
If sArea.Height >= 768 And sArea.Width > 1024 Then
Me.Size = New Size(1024, 768)
Me.WindowState = FormWindowState.Normal
Me.CenterToScreen()
Else
Me.WindowState = FormWindowState.Maximized
End If
THanks for any help
sArea = "Screen"......
Dim sArea As System.Drawing.Rectangle
sArea = Screen.PrimaryScreen.WorkingArea()
'Bigger than Required?
If sArea.Height >= 768 And sArea.Width > 1024 Then
Me.Size = New Size(1024, 768)
Me.WindowState = FormWindowState.Normal
Me.CenterToScreen()
Else
Me.WindowState = FormWindowState.Maximized
End If
THanks for any help