This documentation is archived and is not being maintained.

SystemInformation.PrimaryMonitorSize Property

Gets the dimensions, in pixels, of the primary display monitor.

[Visual Basic]
Public Shared ReadOnly Property PrimaryMonitorSize As Size
public static Size PrimaryMonitorSize {get;}
public: __property static Size get_PrimaryMonitorSize();
public static function get PrimaryMonitorSize() : Size;

Property Value

A Size that specifies the dimensions of the primary monitor in pixels.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SystemInformation Class | SystemInformation Members | System.Windows.Forms Namespace | SystemInformation | PrimaryMonitorMaximizedWindowSize | Size