MouseEventArgs.Buttons Property

Definition

The buttons being pressed when the mouse event was fired: Left button=1, Right button=2, Middle (wheel) button=4, 4th button (typically, "Browser Back" button)=8, 5th button (typically, "Browser Forward" button)=16. If two or more buttons are pressed, returns the logical sum of the values. E.g., if Left button and Right button are pressed, returns 3 (=1 | 2).

public:
 property long Buttons { long get(); void set(long value); };
public long Buttons { get; set; }
member this.Buttons : int64 with get, set
Public Property Buttons As Long

Property Value

Applies to