SystemInformation.MousePresent Property


Gets a value indicating whether a pointing device is installed.

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

static member MousePresent : bool with get

Property Value

Type: System.Boolean

true if a mouse is installed; otherwise, false.

The MousePresent property indicates whether a pointing device is present or installed on the system. This is usually the case, so MousePresent almost always returns true.

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