Button.MouseDown
- Updated2025-07-21
- 1 minute(s) read
Button.MouseDown
Syntax
ControlName_MouseDown( btn, shift, x, y)
Applies To
Purpose
Occurs when the user clicks the mouse on the control. This event occurs before the Button.MouseUp event.
Parameters
btn As Integer
[In] Specifies a MouseButtons constant that specifies the mouse button the user pressed to generate this event.
shift As Integer
[In] Specifies a combination of the KeyModifiers constants that specifies the state of the <Shift>, <Ctrl>, and <Alt> keys.
x As long
[In] Specifies the x-coordinate of the mouse pointer, relative to the control, at the moment when the event occurs.
y As long
[In] Specifies the y-coordinate of the mouse pointer, relative to the control, at the moment when the event occurs.