GefApplication.MonitorCount (read-only property)

Gets the number of monitors attached to the system.
Syntax: long = object.MonitorCount
Description: Gets the number of monitors attached to the system.

Example:

Sub Application_Name()
    
    Dim oCimApp As GefApplication
    Set oCimApp = CimGetScreen.Application
    MsgBox "The number of monitors is " & oCimApp.MonitorCount
    
End Sub
See Also: GetMonitorRect , GetMonitorWorkingRect