Gets the Screen object that represents the computer's primary display screen.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
This example uses the WorkingArea property of the My.Computer.Screen property to determine the working area of the computer's primary display, and then resizes the form to fill the working area.
Private Sub EnlargeForm() Me.Size = My.Computer.Screen.WorkingArea.Size Me.Location = New System.Drawing.Point(0, 0) End Sub
This example needs to run in a Windows Forms application.
Available since 2.0