Where is the constant list KeyCodeEnum

Where is the constant list KeyCodeEnum

18627796338
Enthusiast Enthusiast
622 Views
2 Replies
Message 1 of 3

Where is the constant list KeyCodeEnum

18627796338
Enthusiast
Enthusiast

In KeyboardEvents.OnKeyDown Event API, the first parameter Key's description

 

Returns a key code, such as kKeyF1 (the F1 key) or kKeyHome (the HOME key). The key codes are defined in the constant list KeyCodeEnum.


Where is the constant list KeyCodeEnum?

0 Likes
Accepted solutions (1)
623 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor
Accepted solution

I believe this is what you are looking for:

https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.keys?view=windowsdesktop-5.0

Then there is something similar in VBA too, but I doubt that is the one you are looking for:

https://docs.microsoft.com/en-us/office/vba/Language/Reference/User-Interface-Help/keycode-constants 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

18627796338
Enthusiast
Enthusiast
Thanks.
0 Likes