KeyDown Event
Calendar ActiveX Control v24.0
See also
- CalendarControl Control
- KeyUp Event
Description
Occurs when a key is pressed on the keyboard and the Calendar Control has focus.
Syntax
Public Event KeyDown(ByRef KeyCode As Integer, ByVal Shift As Integer)
Parameters
- KeyCode — ASCII code for the key that was pressed.
- Shift — Specifies whether the Shift, Ctrl, or Alt keys were pressed.
Remarks
There are many options that allow the subject of an event to be edited via the keyboard. For example, pressing the F2 key when an event has focus can enable in-place editing of the event subject.
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 values
| Shift combination | 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
- CalendarControl Control
- KeyUp Event
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.