GetMouseButton method
      
 

Description

Returns an integer that identifies the button that was pressed (MouseDown) or released (MouseUp) to cause the event.

Syntax

object.GetMouseButton () As Integer

Remarks

The returned value is a bit field with bits corresponding to the left button (1), right button (2), and middle button (4).