How to take the corresponding key value according to the keyvalue value

xiaoxiao2021-03-06  117

=========

One.

=========

For (int I = 48; i <= 57; i ) {if (e.keyvalue == i) {TotalDate = (i-48);}}

==========

two.

===========

// keys k = (keys) E.KEYVALUE; // k.toString ();

==========

three.

==========

(char) e.keyvalue) .tostring ();

==========

Four Schedule (key value enumeration)

==========

Note

This class contains constants for handling the keyboard input. The key is identified by the key value, the key value is a integration of the key code and a set of modifiers. The left four numbers of the key value contain key code (like the Windows virtual key code). The right side of the key value contains the modifier of Shift, Control, and Alt keys.

member

Members Name Description Value A is supported by .NET Framework. A key. 65ADD is supported by .NET Framework. Plus key. 107ALT is supported by the .NET Framework. ALT combination key. 262144APPS is supported by .NET Framework. Application key (Microsoft Natural Keyboard, ergonomic keyboard). 93TTN is supported by .NET Framework. ATTN key. 246B is supported by .NET Framework. B. 66BACK is supported by .NET Framework. Backspace key. 8Browserback browser back key (Windows 2000 or higher). 166Browserfavorites browser Favorites key (Windows 2000 or higher). 171BrowserForward browser head key (Windows 2000 or higher). 167BrowserHome browser homepage key (Windows 2000 or higher). 172BrowSerRefresh browser refreshed (Windows 2000 or higher). 168BrowSearch browser search key (Windows 2000 or higher). 170BrowSerstop browser stop key (Windows 2000 or higher). 169C is supported by .NET Framework. C key. 67cancel is supported by .NET Framework. Cancel key. 3Capital is supported by .NET Framework. Caps Lock button. 20Capslock is supported by the .NET Framework. Caps Lock button. 20CLEAR is supported by .NET Framework. CLEAR button. 12Control is supported by the .NET Framework. Ctrl combination key. 131072ControlKey is supported by .NET Framework. Ctrl key. 17crsel is supported by .NET Framework. CRSEL key. 247D is supported by the .NET Framework. D key. 68D0 is supported by .NET Framework. 0 key. 48D1 is supported by .NET Framework. 1 button. 49D2 is supported by .NET Framework. 2 key. 50D3 is supported by .NET Framework. 3 key. 51D4 is supported by .NET Framework. 4 key. 52D5 is supported by .NET Framework. 5 key. 53D6 is supported by .NET Framework. 6 key. 54D7 is supported by .NET Framework. 7 key. 55d8 is supported by .NET Framework. 8 key. 56D9 is supported by .NET Framework. 9 key. 57Decimal is supported by .NET Framework. Test key. 110Delete is supported by .NET Framework. Del key. 46DiVide is supported by .NET Framework. Sepament key. 111Down is supported by .NET Framework. Down Arrow button. 40E is supported by .NET Framework. E key. 69EN is supported by .NET Framework. End key. 35enter is supported by .NET Framework. ENTER key. 13raseeof is supported by .NET Framework.

ERASE EOF button. 249escape is supported by .NET Framework. ESC. 27Execute is supported by the .NET Framework. Execute key. 43Exsel is supported by .NET Framework. EXSEL key. 248F is supported by .NET Framework. F button. 70f1 is supported by the .NET Framework. F1 key. 112F10 is supported by .NET Framework. F10 key. 121f11 is supported by .NET Framework. F11 key. 122F12 is supported by .NET Framework. F12 key. 123f13 is supported by .NET Framework. F13 key. 124F14 is supported by .NET Framework. F14 key. 125f15 is supported by .NET Framework. F15 key. 126f16 is supported by .NET Framework. F16 key. 127f17 is supported by .NET Framework. F17 key. 128F18 is supported by .NET Framework. F18 key. 129f19 is supported by .NET Framework. F19 key. 130f2 is supported by the .NET Framework. F2 key. 113F20 is supported by the .NET Framework. F20 key. 131f21 is supported by .NET Framework. F21 key. 132f22 is supported by .NET Framework. F22 key. 133f23 is supported by .NET Framework. F23 key. 134f24 is supported by the .NET Framework. F24 key. 135f3 is supported by .NET Framework. F3 key. 114F4 is supported by .NET Framework. F4 key. 115f5 is supported by .NET Framework. F5 key. 116f6 is supported by .NET Framework. F6 key. 117f7 is supported by .NET Framework. F7 key. 118F8 is supported by .NET Framework. F8 key. 119f9 is supported by .NET Framework. F9 key. 120FinalModeIME final mode key. 24G is supported by .NET Framework. G key. 71H is supported by .NET Framework. H key. 72HanguelModeime Hanguel Mode button. (To maintain compatibility; use the Hangulmode 21HANGULMODEIME HANGUL mode key. 21hanjamodeime Hanja Mode button. 25HELP is supported by the .NET Framework. Help key. 47Home is supported by .NET Framework. HOME button. 36i is supported by .NET Framework. I key. 73IMeaceEptime Accept button. 30IMEConvertime conversion key. 28IMEModeChangeime Mode Change button. 31ImenonConvertime Non-conversion key. 29INSERT is supported by .NET Framework. INS button. 45J is supported by the .NET Framework. J button. 74JunjamodeIme Junja Mode button. 23K is supported by .NET Framework. K key. 75kanamodeime kana mode key. 21kanjimodeime kanji mode key. 25keycode is supported by .NET Framework. The bit shielded bit shielded from the key value extracts. 65535L is supported by .NET Framework. L button.

76Launchapplication1 launches a one-click application (Windows 2000 or higher). 182Launchapplication2 launches the application two key (Windows 2000 or higher). 183LaunchMail launches the mail key (Windows 2000 or higher). 180lbutton is supported by .NET Framework. The left button of the mouse. 1LControlKey is supported by .NET Framework. Left Ctrl key. 162left is supported by the .NET Framework. LEFT Arrow button. 37LineFeed is supported by the .NET Framework. Linefeed key. 10LMenu is supported by the .NET Framework. Left ALT key. 164lshiftKey is supported by .NET Framework. Left SHIFT button. 160LWIN is supported by .NET Framework. Left Windows Logo key (Microsoft Natural Keyboard, ergonomic keyboard). 91M is supported by the .NET Framework. M key. 77MButton is supported by the .NET Framework. The button in the mouse (three buttons). 4medianextTrack Media Next track key (Windows 2000 or higher). 176MediaPlayPault Media Play Pause Key (Windows 2000 or higher). 179mediapRevioustrack Media Previous tracks (Windows 2000 or higher). 177mediastop Media "Stop" key (Windows 2000 or higher). 178 Menu is supported by the .NET Framework. ALT key. 18Modifiers are supported by the .NET Framework. The bit shielding of the modifier is extracted from the key value. -65536Multiply is supported by .NET Framework. Take the line. 106N is supported by .NET Framework. N key. 78NEXT is supported by the .NET Framework. Page Down. 34noname is supported by the .NET Framework. Reserved for the context of future use. 252None is supported by the .NET Framework. No keys are pressed. 0NUMLOCK is supported by the .NET Framework. Num Lock button. 144NUMPAD0 is supported by .NET Framework. 0 key on the numeric keypad. 96numpad1 is supported by .NET Framework. 1 button on the numeric keypad. 97numpad2 is supported by .NET Framework. 2 keys on the numeric keypad. 98numpad3 is supported by .NET Framework. 3 key on the numeric keypad. 99NUMPAD4 is supported by .NET Framework. 4 keys on the numeric keypad. 100NUMPAD5 is supported by the .NET Framework. 5 key on the numeric keypad. 101NUMPAD6 is supported by .NET Framework. 6 key on the numeric keypad. 102NUMPAD7 is supported by the .NET Framework. 7 keys on the numeric keypad. 103NUMPAD8 is supported by .NET Framework. 8 key on the numeric keypad. 104NUMPAD9 is supported by .NET Framework. 9 keys on the numeric keypad. 105o is supported by .NET Framework. O key. 79Oem8Oem unique.

223OMBACKSLASHRT 102 key OEM angle brackets (Windows 2000 or higher). 226oemclear is supported by .NET Framework. CLEAR button. 254OemClosebrackets OEM Right Bracket on the US Standard Keyboard (Windows 2000 or higher). 221Oemcomma OEM comma key (Windows 2000 or higher) on any country keyboard. 188Oemminus OEM minus key (Windows 2000 or higher) on any country keyboard. 189Oemopenbrackets OEM Left Brackets (Windows 2000 or higher) on the US standard keyboard. 219oemperiod OEM sentence point key (Windows 2000 or higher) on any country / region. The 190Oempipe US standard keyboard OEM pipe key (Windows 2000 or higher). 220oemplus OEM plus keyboard on any country keyboard (Windows 2000 or higher). 187Oemquestion OEM Question Number Key (Windows 2000 or higher) on the US standard keyboard. 191Oemquotes OEM single / double quotes on the US standard keyboard (Windows 2000 or higher). 222OemSemicolon OEM Senging on the US standard keyboard (Windows 2000 or higher). 186Oemtilde OEM War Key (Windows 2000 or higher) on the US standard keyboard. 192P is supported by the .NET Framework. P key. 80PA1 is supported by .NET Framework. PA1 key. 253PageDown is supported by the .NET Framework. Page Down. 34PageUp is supported by the .NET Framework. Page Up button. 33PAUSE is supported by .NET Framework. PAUSE button. 19Play is supported by the .NET Framework. Play key. 250PRINT is supported by .NET Framework. Print key. 42PrintScreen is supported by the .NET Framework. Print Screen button. 44Prior is supported by .NET Framework. Page Up button. 33ProcessKey is supported by .NET Framework. Process Key button. 229Q is supported by .NET Framework. Q key. 81R is supported by the .NET Framework. R key. 82RButton is supported by the .NET Framework. Mouse right button. 2RControlKey is supported by .NET Framework. Right Ctrl key. 163 Return is supported by .NET Framework. Return key. 13Right is supported by the .NET Framework. Right Arrow button. 39rmenu is supported by the .NET Framework. Right Alt key. 165rshiftKey is supported by .NET Framework. Right SHIFT button. 161RWIN is supported by the .NET Framework. Right Windows Logo Key (Microsoft Natural Keyboard, ergonomic keyboard). 92S is supported by .NET Framework. S key.

83scroll is supported by .NET Framework. Scroll Lock button. 145Select is supported by .NET Framework. SELECT button. 41SelectMedia Select Media Keys (Windows 2000 or higher). 181SEPARATOR is supported by .NET Framework. The separator key. 108shift is supported by the .NET Framework. Shift key. 65536Shiftkey is supported by .NET Framework. Shift key. 16SNAPSHOT is supported by the .NET Framework. Print Screen button. 44Space is supported by the .NET Framework. Spacebar key. 32Subtract is supported by .NET Framework. Minuscular. 109T is supported by .NET Framework. T key. 84TAB is supported by .NET Framework. Tab key. 9U is supported by .NET Framework. U key. 85UP is supported by .NET Framework. UP Arrow button. 38V is supported by .NET Framework. V key. 86VoluMedown reduces volume keys (Windows 2000 or higher). 174qoluMumeMute Mute key (Windows 2000 or higher). 173VolumeUP increasing the volume key (Windows 2000 or higher). 175W is supported by .NET Framework. W key. 87x is supported by .NET Framework. X button. 88XButton1 is supported by .NET Framework. The first X mouse button (the mouse of five buttons). 5XButton2 is supported by .NET Framework. The second X mouse button (the mouse of five buttons). 6Y is supported by .NET Framework. Y key. 89Z is supported by .NET Framework. Z key. 90ZOOM is supported by the .NET Framework. ZOOM key. 251 request

转载请注明原文地址:https://www.9cbs.com/read-125303.html

New Post(0)