Skip to content

MouseMove Event

Description

The MouseMove event occurs when the mouse cursor is moved anywhere over the Date Picker Control.

Syntax

Public Event MouseMove( _
    ByVal [Button](#) As Integer, _
    ByVal [Shift](#) As Integer, _
    ByVal [x](#) As Long, _
    ByVal [y](#) As Long _
)

Parameters

  • Button: Code indicating which button on the mouse is currently pressed, if any.
  • Shift: Specifies whether the Shift, Ctrl, or ALT keys are pressed when the mouse cursor is moved.
  • x: X coordinate of the mouse pointer.
  • y: Y coordinate of the mouse pointer.

Remarks

The MouseMove event occurs each time the mouse cursor is moved over the Date Picker control.

The MouseMove event can be used with the HitTest method to determine which date the cursor is currently over, allowing you to display custom tooltips or perform other actions.

Mouse Button Codes

Below are the meanings of the mouse button codes:

Button Value
Left Mouse Button 1
Right Mouse Button 2

Shift Parameter Values

Any combination of the Shift, Alt, and Ctrl keys can be used. The table below shows the possible values for the Shift parameter:

Shift Parameter Value Bit Mask
Shift 1 001
Ctrl 2 010
Shift + Ctrl 3 011
Alt 4 100
Alt + Shift 5 101
Alt + Ctrl 6 110
Shift + Alt + Ctrl 7 111

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.