Specifies constants that define which mouse button was pressed.
[Visual Basic] Public Enum MouseButtons [C#] public enum MouseButtons [C++] public enum MouseButtons
[JScript] In JScript, you can use the enumerations in the NGWS frameworks, but you cannot define your own.
This enumeration is used by many classes, including System.WinForms.Design.MouseButtons.ColorEditor, System.WinForms.Design.MouseButtons.ComponentTray, AxHost, Control, DataGrid, Form, RadioButton, Splitter, StatusBar, and UpDownBase.
Member Name | Description |
---|---|
Left | The left mouse button was pressed. |
Middle | The middle mouse button was pressed. |
None | No mouse button was pressed. |
Right | The right mouse button was pressed. |
Namespace: System.WinForms
Assembly: System.WinForms.dll