Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

WheelExists Property

Location

My.Computer.Mouse.WheelExists

Syntax

Dim result As Boolean = My.Computer.Mouse.WheelExists

Description

The WheelExists property indicates whether the mouse installed on the local computer includes a "mouse wheel" (TRue) or not (False).

Usage at a Glance

  • This property is read-only.

  • This property is only valid in non-server applications.

  • An exception is thrown if the computer does not have an installed mouse.

  • Always use this property to detect the presence of a mouse wheel before using the My.Computer.Mouse.WheelScrollLines property.

Related Framework Entries

  • Microsoft.VisualBasic.Devices.Mouse.WheelExists Property

  • System.Windows.Forms.SystemInformation.MouseWheelPresent Property

See Also

ButtonsSwapped Property, Mouse Object, WheelScrollLines Property

Категории