SystemInformation.MonitorCount Property


Gets the number of display monitors on the desktop.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

static member MonitorCount : int with get

Property Value

Type: System.Int32

The number of monitors that make up the desktop.

The MonitorCount property indicates the number of monitors currently recognized by the operating system. This property returns a value greater than one only if multiple monitors are currently recognized by the operating system.


This property is supported only on Windows 98, Windows Millennium Edition, Windows 2000, Windows XP, and the Windows Server 2003 family.

The following code example lists all properties of the SystemInformation class in a ListBox and displays the current value of the property in a TextBox when a list item selected.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top