KeyUp Event

Occurs when a key is released.

Syntax

MediaPlayer_KeyUp( KeyCode, ShiftState )

Parameters

KeyCode

An Integer value specifying a key code, such as vbKeyF1 (the f1 key) or vbKeyHome (the home key). To specify key codes, see the Visual Basic documentation.

ShiftState

A Integer value specifying a bit field with the least significant bits corresponding to the shift key (bit 0), the ctrl key (bit 1), and the alt key (bit 2 ). These bits correspond to the values 1, 2, and 4, respectively. Some, all, or none of the bits can be set, indicating that some, all, or none of the keys are pressed.

Remarks

This event is called when the control has focus and a key is pressed.

This event is called only if SendKeyboardEvents is True.

See Also

KeyDown, KeyPress, SendKeyboardEvents

© 1996-1998 Microsoft Corporation. All rights reserved.