Share via


MouseEventArgs.Button Property

Definition

The button number that was pressed when the mouse event was fired: Left button=0, middle button=1 (if present), right button=2. For mice configured for left handed use in which the button actions are reversed the values are instead read from right to left.

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

Property Value

Applies to