This documentation is archived and is not being maintained.

SystemInformation.MouseButtons Property

Gets the number of buttons on the mouse.

[Visual Basic]
Public Shared ReadOnly Property MouseButtons As Integer
public static int MouseButtons {get;}
public: __property static int get_MouseButtons();
public static function get MouseButtons() : int;

Property Value

The number of buttons on the mouse, or zero if no mouse is installed.


Use MouseButtons to determine the number of mouse buttons that your application can support. You can also use MouseButtons to provide additional functionality if more than two buttons are available.


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 | MousePresent | MouseButtonsSwapped