Set form size to current screen resolution?

tahu191

Well-known member
Joined
Oct 27, 2005
Messages
48
Location
USA
Programming Experience
Beginner
How would I set my form size to be the screen's resolution?
 
Either Maximize the window or set according to info from Screen class.
 
VB.NET:
Dim loc As New Point(0, 0)
        With Me
            .Size = My.Computer.Screen.WorkingArea.Size
            .Location = loc
        End With
VB.NET:
Me.Bounds = Screen.PrimaryScreen.WorkingArea
 
Back
Top