KeyUp event
Occurs when you release a key while the object has focus.
If an object has input focus, the KeyUp event is generated for the object before the event is generated for the display, but both will occur.
If the object with input focus is a third-party embedded OLE object, the KeyUp event for the display will not occur.
Syntax
object
_KeyUp
(ByVal
KeyCode
As Integer
, ByVal
Shift
As Integer
)where
object
– is the name of a display element of one of the following types: Button, NumericInput, Recipe, or StringInput.KeyCode
– is a constant of the type Integer, such as vbKeyF1 (the F1 key) or vbKeyHome (the Home key). To specify key codes use the constants in the Visual Basic object library.Shift
– is a parameter of the type Integer that corresponds to the state of the Shift and Ctrl keys at the time of the event.Remarks
- The KeyUp event is not generated for the Tab key.
- The KeyUp event is not generated for the Enter key on a button object.
Provide Feedback