Gets the Screen object that represents the computer's primary display screen.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
The My.Computer.Screen property provides functionality similar to the PrimaryScreen property.
Availability by Project Type
Windows Forms Application
Windows Forms Control Library
Web Control Library
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.
This example needs to run in a Windows Forms application.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.