Skip to content

MouseUp Event

Description

Occurs when the mouse pointer is over the StatusBar control and a mouse button is released.

Syntax

Public Event MouseUp( _
    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 was pressed. Below are the meanings of mouse button codes:

Button Value
Left Mouse Button 1
Right Mouse Button 2

Shift

Specifies whether the Shift, Ctrl, or Alt keys were pressed when the mouse button was pressed. 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 001 1
Ctrl 010 2
Shift + Ctrl 011 3
Alt 100 4
Alt + Shift 101 5
Alt + Ctrl 110 6
Shift + Alt + Ctrl 111 7

x

X coordinate of the mouse pointer.

y

Y coordinate of the mouse pointer.

Remarks

The MouseDown and MouseUp events occur when the mouse pointer is pressed and released while over the StatusBar. The HitTest method can use the x and y parameters to determine if a pane was under the mouse pointer when it was pressed or released.

See Also

StatusBar Collection | HitTest Method


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