Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

VirtualKeys (Enums)
 
.
Summary
An enumeration which maps to the various VK_* constants.

C# Definition:

    /// <summary>
    /// Enumeration for virtual keys.
    /// </summary>
    public enum VirtualKeys
        : ushort
    {
        LeftButton = 0x01,
        RightButton = 0x02,
        Cancel = 0x03,
        MiddleButton = 0x04,
        ExtraButton1 = 0x05,
        ExtraButton2 = 0x06,
        Back = 0x08,
        Tab = 0x09,
        Clear = 0x0C,
        Return = 0x0D,
        Shift = 0x10,
        Control = 0x11,
        /// <summary></summary>
        Menu = 0x12,
        /// <summary></summary>
        Pause = 0x13,
        /// <summary></summary>
        CapsLock = 0x14,
        /// <summary></summary>
        Kana = 0x15,
        /// <summary></summary>
        Hangeul = 0x15,
        /// <summary></summary>
        Hangul = 0x15,
        /// <summary></summary>
        Junja = 0x17,
        /// <summary></summary>
        Final = 0x18,
        /// <summary></summary>
        Hanja = 0x19,
        /// <summary></summary>
        Kanji = 0x19,
        /// <summary></summary>
        Escape = 0x1B,
        /// <summary></summary>
        Convert = 0x1C,
        /// <summary></summary>
        NonConvert = 0x1D,
        /// <summary></summary>
        Accept = 0x1E,
        /// <summary></summary>
        ModeChange = 0x1F,
        /// <summary></summary>
        Space = 0x20,
        /// <summary></summary>
        Prior = 0x21,
        /// <summary></summary>
        Next = 0x22,
        /// <summary></summary>
        End = 0x23,
        /// <summary></summary>
        Home = 0x24,
        /// <summary></summary>
        Left = 0x25,
        /// <summary></summary>
        Up = 0x26,
        /// <summary></summary>
        Right = 0x27,
        /// <summary></summary>
        Down = 0x28,
        /// <summary></summary>
        Select = 0x29,
        /// <summary></summary>
        Print = 0x2A,
        /// <summary></summary>
        Execute = 0x2B,
        /// <summary></summary>
        Snapshot = 0x2C,
        /// <summary></summary>
        Insert = 0x2D,
        /// <summary></summary>
        Delete = 0x2E,
        /// <summary></summary>
        Help = 0x2F,
        /// <summary></summary>
        N0 = 0x30,
        /// <summary></summary>
        N1 = 0x31,
        /// <summary></summary>
        N2 = 0x32,
        /// <summary></summary>
        N3 = 0x33,
        /// <summary></summary>
        N4 = 0x34,
        /// <summary></summary>
        N5 = 0x35,
        /// <summary></summary>
        N6 = 0x36,
        /// <summary></summary>
        N7 = 0x37,
        /// <summary></summary>
        N8 = 0x38,
        /// <summary></summary>
        N9 = 0x39,
        /// <summary></summary>
        A = 0x41,
        /// <summary></summary>
        B = 0x42,
        /// <summary></summary>
        C = 0x43,
        /// <summary></summary>
        D = 0x44,
        /// <summary></summary>
        E = 0x45,
        /// <summary></summary>
        F = 0x46,
        /// <summary></summary>
        G = 0x47,
        /// <summary></summary>
        H = 0x48,
        /// <summary></summary>
        I = 0x49,
        /// <summary></summary>
        J = 0x4A,
        /// <summary></summary>
        K = 0x4B,
        /// <summary></summary>
        L = 0x4C,
        /// <summary></summary>
        M = 0x4D,
        /// <summary></summary>
        N = 0x4E,
        /// <summary></summary>
        O = 0x4F,
        /// <summary></summary>
        P = 0x50,
        /// <summary></summary>
        Q = 0x51,
        /// <summary></summary>
        R = 0x52,
        /// <summary></summary>
        S = 0x53,
        /// <summary></summary>
        T = 0x54,
        /// <summary></summary>
        U = 0x55,
        /// <summary></summary>
        V = 0x56,
        /// <summary></summary>
        W = 0x57,
        /// <summary></summary>
        X = 0x58,
        /// <summary></summary>
        Y = 0x59,
        /// <summary></summary>
        Z = 0x5A,
        /// <summary></summary>
        LeftWindows = 0x5B,
        /// <summary></summary>
        RightWindows = 0x5C,
        /// <summary></summary>
        Application = 0x5D,
        /// <summary></summary>
        Sleep = 0x5F,
        /// <summary></summary>
        Numpad0 = 0x60,
        /// <summary></summary>
        Numpad1 = 0x61,
        /// <summary></summary>
        Numpad2 = 0x62,
        /// <summary></summary>
        Numpad3 = 0x63,
        /// <summary></summary>
        Numpad4 = 0x64,
        /// <summary></summary>
        Numpad5 = 0x65,
        /// <summary></summary>
        Numpad6 = 0x66,
        /// <summary></summary>
        Numpad7 = 0x67,
        /// <summary></summary>
        Numpad8 = 0x68,
        /// <summary></summary>
        Numpad9 = 0x69,
        /// <summary></summary>
        Multiply = 0x6A,
        /// <summary></summary>
        Add = 0x6B,
        /// <summary></summary>
        Separator = 0x6C,
        /// <summary></summary>
        Subtract = 0x6D,
        /// <summary></summary>
        Decimal = 0x6E,
        /// <summary></summary>
        Divide = 0x6F,
        /// <summary></summary>
        F1 = 0x70,
        /// <summary></summary>
        F2 = 0x71,
        /// <summary></summary>
        F3 = 0x72,
        /// <summary></summary>
        F4 = 0x73,
        /// <summary></summary>
        F5 = 0x74,
        /// <summary></summary>
        F6 = 0x75,
        /// <summary></summary>
        F7 = 0x76,
        /// <summary></summary>
        F8 = 0x77,
        /// <summary></summary>
        F9 = 0x78,
        /// <summary></summary>
        F10 = 0x79,
        /// <summary></summary>
        F11 = 0x7A,
        /// <summary></summary>
        F12 = 0x7B,
        /// <summary></summary>
        F13 = 0x7C,
        /// <summary></summary>
        F14 = 0x7D,
        /// <summary></summary>
        F15 = 0x7E,
        /// <summary></summary>
        F16 = 0x7F,
        /// <summary></summary>
        F17 = 0x80,
        /// <summary></summary>
        F18 = 0x81,
        /// <summary></summary>
        F19 = 0x82,
        /// <summary></summary>
        F20 = 0x83,
        /// <summary></summary>
        F21 = 0x84,
        /// <summary></summary>
        F22 = 0x85,
        /// <summary></summary>
        F23 = 0x86,
        /// <summary></summary>
        F24 = 0x87,
        /// <summary></summary>
        NumLock = 0x90,
        /// <summary></summary>
        ScrollLock = 0x91,
        /// <summary></summary>
        NEC_Equal = 0x92,
        /// <summary></summary>
        Fujitsu_Jisho = 0x92,
        /// <summary></summary>
        Fujitsu_Masshou = 0x93,
        /// <summary></summary>
        Fujitsu_Touroku = 0x94,
        /// <summary></summary>
        Fujitsu_Loya = 0x95,
        /// <summary></summary>
        Fujitsu_Roya = 0x96,
        /// <summary></summary>
        LeftShift = 0xA0,
        /// <summary></summary>
        RightShift = 0xA1,
        /// <summary></summary>
        LeftControl = 0xA2,
        /// <summary></summary>
        RightControl = 0xA3,
        /// <summary></summary>
        LeftMenu = 0xA4,
        /// <summary></summary>
        RightMenu = 0xA5,
        /// <summary></summary>
        BrowserBack = 0xA6,
        /// <summary></summary>
        BrowserForward = 0xA7,
        /// <summary></summary>
        BrowserRefresh = 0xA8,
        /// <summary></summary>
        BrowserStop = 0xA9,
        /// <summary></summary>
        BrowserSearch = 0xAA,
        /// <summary></summary>
        BrowserFavorites = 0xAB,
        /// <summary></summary>
        BrowserHome = 0xAC,
        /// <summary></summary>
        VolumeMute = 0xAD,
        /// <summary></summary>
        VolumeDown = 0xAE,
        /// <summary></summary>
        VolumeUp = 0xAF,
        /// <summary></summary>
        MediaNextTrack = 0xB0,
        /// <summary></summary>
        MediaPrevTrack = 0xB1,
        /// <summary></summary>
        MediaStop = 0xB2,
        /// <summary></summary>
        MediaPlayPause = 0xB3,
        /// <summary></summary>
        LaunchMail = 0xB4,
        /// <summary></summary>
        LaunchMediaSelect = 0xB5,
        /// <summary></summary>
        LaunchApplication1 = 0xB6,
        /// <summary></summary>
        LaunchApplication2 = 0xB7,
        /// <summary></summary>
        OEM1 = 0xBA,
        /// <summary></summary>
        OEMPlus = 0xBB,
        /// <summary></summary>
        OEMComma = 0xBC,
        /// <summary></summary>
        OEMMinus = 0xBD,
        /// <summary></summary>
        OEMPeriod = 0xBE,
        /// <summary></summary>
        OEM2 = 0xBF,
        /// <summary></summary>
        OEM3 = 0xC0,
        /// <summary></summary>
        OEM4 = 0xDB,
        /// <summary></summary>
        OEM5 = 0xDC,
        /// <summary></summary>
        OEM6 = 0xDD,
        /// <summary></summary>
        OEM7 = 0xDE,
        /// <summary></summary>
        OEM8 = 0xDF,
        /// <summary></summary>
        OEMAX = 0xE1,
        /// <summary></summary>
        OEM102 = 0xE2,
        /// <summary></summary>
        ICOHelp = 0xE3,
        /// <summary></summary>
        ICO00 = 0xE4,
        /// <summary></summary>
        ProcessKey = 0xE5,
        /// <summary></summary>
        ICOClear = 0xE6,
        /// <summary></summary>
        Packet = 0xE7,
        /// <summary></summary>
        OEMReset = 0xE9,
        /// <summary></summary>
        OEMJump = 0xEA,
        /// <summary></summary>
        OEMPA1 = 0xEB,
        /// <summary></summary>
        OEMPA2 = 0xEC,
        /// <summary></summary>
        OEMPA3 = 0xED,
        /// <summary></summary>
        OEMWSCtrl = 0xEE,
        /// <summary></summary>
        OEMCUSel = 0xEF,
        /// <summary></summary>
        OEMATTN = 0xF0,
        /// <summary></summary>
        OEMFinish = 0xF1,
        /// <summary></summary>
        OEMCopy = 0xF2,
        /// <summary></summary>
        OEMAuto = 0xF3,
        /// <summary></summary>
        OEMENLW = 0xF4,
        /// <summary></summary>
        OEMBackTab = 0xF5,
        /// <summary></summary>
        ATTN = 0xF6,
        /// <summary></summary>
        CRSel = 0xF7,
        /// <summary></summary>
        EXSel = 0xF8,
        /// <summary></summary>
        EREOF = 0xF9,
        /// <summary></summary>
        Play = 0xFA,
        /// <summary></summary>
        Zoom = 0xFB,
        /// <summary></summary>
        Noname = 0xFC,
        /// <summary></summary>
        PA1 = 0xFD,
        /// <summary></summary>
        OEMClear = 0xFE
    }

VB Definition:

    ' NOTE :: The VirtualKeys enumeration is also managed as
    ' NOTE :: System.Windows.Forms.Keys
    ' NOTE :: The bracketed [keynames] are from that managed
    ' NOTE :: Forms.Keys enumeration.

    Public Enum VirtualKeys

    ' // UNASSIGNED // = &HFFFF0000    ' // [Modifiers] = -65536
    ' // UNASSIGNED // = &H0    ' // [None] = 000

    VK_LBUTTON = &H1        ' // [LButton] = 001
    VK_RBUTTON = &H2        ' // [RButton] = 002
    VK_CANCEL = &H3         ' // [Cancel] = 003
    VK_MBUTTON = &H4        ' // [MButton] = 004    ' NOT contiguous with L & RBUTTON
    VK_XBUTTON1 = &H5       ' // [XButton1] = 005   ' NOT contiguous with L & RBUTTON
    VK_XBUTTON2 = &H6       ' // [XButton2] = 006   ' NOT contiguous with L & RBUTTON
    ' // UNASSIGNED // = &H7    ' // ''UNASSIGNED = 007

    VK_BACK = &H8           ' // [Back] = 008
    VK_TAB = &H9        ' // [Tab] = 009
    ' // RESERVED // = &HA        ' // [LineFeed] = 010
    ' // RESERVED // = &HB        ' // ''UNASSIGNED = 011
    VK_CLEAR = &HC          ' // [Clear] = 012
    VK_RETURN = &HD         ' // [Return] = 013
    ' // UNDEFINED //       ' // [Enter] = 013
    VK_SHIFT = &H10         ' // [ShiftKey] = 016
    VK_CONTROL = &H11       ' // [ControlKey] = 017
    VK_MENU = &H12          ' // [Menu] = 018
    VK_PAUSE = &H13         ' // [Pause] = 019
    VK_CAPITAL = &H14       ' // [Capital] = 020
    ' // UNDEFINED //       ' // [CapsLock] = 020

    VK_HANGUL = &H15        ' // [HangulMode] = 021
    VK_HANGEUL = &H15       ' // [HanguelMode] = 021 ' old name (compatibility)
    VK_KANA = &H15          ' // [KanaMode] = 021
    VK_JUNJA = &H17         ' // [JunjaMode] = 023
    VK_FINAL = &H18         ' // [FinalMode] = 024
    VK_KANJI = &H19         ' // [KanjiMode] = 025
    VK_HANJA = &H19         ' // [HanjaMode] = 025

    VK_ESCAPE = &H1B        ' // [Escape] = 027

    VK_CONVERT = &H1C       ' // [IMEConvert] = 028
    VK_NONCONVERT = &H1D    ' // [IMENonconvert] = 029
    VK_ACCEPT = &H1E        ' // [IMEAccept] = 030
    VK_MODECHANGE = &H1F    ' // [IMEModeChange] = 031

    VK_SPACE = &H20         ' // [Space] = 032
    VK_PRIOR = &H21         ' // [Prior] = 033
    ' // UNDEFINED //       ' // [PageUp] = 033
    VK_NEXT = &H22          ' // [Next] = 034
    ' // UNDEFINED //       ' // [PageDown] = 034
    VK_END = &H23           ' // [End] = 035
    VK_HOME = &H24          ' // [Home] = 036

    VK_LEFT = &H25          ' // [Left] = 037
    VK_UP = &H26        ' // [Up] = 038
    VK_RIGHT = &H27         ' // [Right] = 039
    VK_DOWN = &H28          ' // [Down] = 040

    VK_SELECT = &H29        ' // [Select] = 041
    VK_PRINT = &H2A         ' // [Print] = 042
    VK_EXECUTE = &H2B       ' // [Execute] = 043
    VK_SNAPSHOT = &H2C      ' // [Snapshot] = 044
    ' // UNDEFINED //       ' // [PrintScreen] = 044
    VK_INSERT = &H2D        ' // [Insert] = 045
    VK_DELETE = &H2E        ' // [Delete] = 046
    VK_HELP = &H2F          ' // [Help] = 047

    VK_0 = &H30         ' // [D0] = 048
    VK_1 = &H31         ' // [D1] = 049
    VK_2 = &H32         ' // [D2] = 050
    VK_3 = &H33         ' // [D3] = 051
    VK_4 = &H34         ' // [D4] = 052
    VK_5 = &H35         ' // [D5] = 053
    VK_6 = &H36         ' // [D6] = 054
    VK_7 = &H37         ' // [D7] = 055
    VK_8 = &H38         ' // [D8] = 056
    VK_9 = &H39         ' // [D9] = 057

    ' // UNASSIGNED // = &H40 to &H4F (058 to 064)

    VK_A = &H41         ' // [A] = 065
    VK_B = &H42         ' // [B] = 066
    VK_C = &H43         ' // [C] = 067
    VK_D = &H44         ' // [D] = 068
    VK_E = &H45         ' // [E] = 069
    VK_F = &H46         ' // [F] = 070
    VK_G = &H47         ' // [G] = 071
    VK_H = &H48         ' // [H] = 072
    VK_I = &H49         ' // [I] = 073
    VK_J = &H4A         ' // [J] = 074
    VK_K = &H4B         ' // [K] = 075
    VK_L = &H4C         ' // [L] = 076
    VK_M = &H4D         ' // [M] = 077
    VK_N = &H4E         ' // [N] = 078
    VK_O = &H4F         ' // [O] = 079
    VK_P = &H50         ' // [P] = 080
    VK_Q = &H51         ' // [Q] = 081
    VK_R = &H52         ' // [R] = 082
    VK_S = &H53         ' // [S] = 083
    VK_T = &H54         ' // [T] = 084
    VK_U = &H55         ' // [U] = 085
    VK_V = &H56         ' // [V] = 086
    VK_W = &H57         ' // [W] = 087
    VK_X = &H58         ' // [X] = 088
    VK_Y = &H59         ' // [Y] = 089
    VK_Z = &H5A         ' // [Z] = 090

    VK_LWIN = &H5B          ' // [LWin] = 091
    VK_RWIN = &H5C          ' // [RWin] = 092
    VK_APPS = &H5D          ' // [Apps] = 093
    ' // RESERVED // = &H5E        ' // ''UNASSIGNED = 094
    VK_SLEEP = &H5F         ' // [Sleep] = 095

    VK_NUMPAD0 = &H60       ' // [NumPad0] = 096
    VK_NUMPAD1 = &H61       ' // [NumPad1] = 097
    VK_NUMPAD2 = &H62       ' // [NumPad2] = 098
    VK_NUMPAD3 = &H63       ' // [NumPad3] = 099
    VK_NUMPAD4 = &H64       ' // [NumPad4] = 100
    VK_NUMPAD5 = &H65       ' // [NumPad5] = 101
    VK_NUMPAD6 = &H66       ' // [NumPad6] = 102
    VK_NUMPAD7 = &H67       ' // [NumPad7] = 103
    VK_NUMPAD8 = &H68       ' // [NumPad8] = 104
    VK_NUMPAD9 = &H69       ' // [NumPad9] = 105

    VK_MULTIPLY = &H6A      ' // [Multiply] = 106
    VK_ADD = &H6B           ' // [Add] = 107
    VK_SEPARATOR = &H6C     ' // [Separator] = 108
    VK_SUBTRACT = &H6D      ' // [Subtract] = 109
    VK_DECIMAL = &H6E       ' // [Decimal] = 110
    VK_DIVIDE = &H6F        ' // [Divide] = 111

    VK_F1 = &H70        ' // [F1] = 112
    VK_F2 = &H71        ' // [F2] = 113
    VK_F3 = &H72        ' // [F3] = 114
    VK_F4 = &H73        ' // [F4] = 115
    VK_F5 = &H74        ' // [F5] = 116
    VK_F6 = &H75        ' // [F6] = 117
    VK_F7 = &H76        ' // [F7] = 118
    VK_F8 = &H77        ' // [F8] = 119
    VK_F9 = &H78        ' // [F9] = 120
    VK_F10 = &H79           ' // [F10] = 121
    VK_F11 = &H7A           ' // [F11] = 122
    VK_F12 = &H7B           ' // [F12] = 123

    VK_F13 = &H7C           ' // [F13] = 124
    VK_F14 = &H7D           ' // [F14] = 125
    VK_F15 = &H7E           ' // [F15] = 126
    VK_F16 = &H7F           ' // [F16] = 127
    VK_F17 = &H80           ' // [F17] = 128
    VK_F18 = &H81           ' // [F18] = 129
    VK_F19 = &H82           ' // [F19] = 130
    VK_F20 = &H83           ' // [F20] = 131
    VK_F21 = &H84           ' // [F21] = 132
    VK_F22 = &H85           ' // [F22] = 133
    VK_F23 = &H86           ' // [F23] = 134
    VK_F24 = &H87           ' // [F24] = 135

    ' // UNASSIGNED // = &H88 to &H8F (136 to 143)

    VK_NUMLOCK = &H90       ' // [NumLock] = 144
    VK_SCROLL = &H91        ' // [Scroll] = 145

    VK_OEM_NEC_EQUAL = &H92     ' // [NEC_Equal] = 146    ' NEC PC-9800 kbd definitions "=" key on numpad
    VK_OEM_FJ_JISHO = &H92      ' // [Fujitsu_Masshou] = 146    ' Fujitsu/OASYS kbd definitions "Dictionary" key
    VK_OEM_FJ_MASSHOU = &H93    ' // [Fujitsu_Masshou] = 147    ' Fujitsu/OASYS kbd definitions "Unregister word" key
    VK_OEM_FJ_TOUROKU = &H94    ' // [Fujitsu_Touroku] = 148    ' Fujitsu/OASYS kbd definitions "Register word" key  
    VK_OEM_FJ_LOYA = &H95       ' // [Fujitsu_Loya] = 149    ' Fujitsu/OASYS kbd definitions "Left OYAYUBI" key
    VK_OEM_FJ_ROYA = &H96       ' // [Fujitsu_Roya] = 150    ' Fujitsu/OASYS kbd definitions "Right OYAYUBI" key

    ' // UNASSIGNED // = &H97 to &H9F (151 to 159)

    ' NOTE :: &HA0 to &HA5 (160 to 165) = left and right Alt, Ctrl and Shift virtual keys.
    ' NOTE :: Used only as parameters to GetAsyncKeyState() and GetKeyState().
    ' NOTE :: No other API or message will distinguish left and right keys in this way.
    VK_LSHIFT = &HA0        ' // [LShiftKey] = 160
    VK_RSHIFT = &HA1        ' // [RShiftKey] = 161
    VK_LCONTROL = &HA2      ' // [LControlKey] = 162
    VK_RCONTROL = &HA3      ' // [RControlKey] = 163
    VK_LMENU = &HA4         ' // [LMenu] = 164
    VK_RMENU = &HA5         ' // [RMenu] = 165

    VK_BROWSER_BACK = &HA6      ' // [BrowserBack] = 166
    VK_BROWSER_FORWARD = &HA7   ' // [BrowserForward] = 167
    VK_BROWSER_REFRESH = &HA8   ' // [BrowserRefresh] = 168
    VK_BROWSER_STOP = &HA9      ' // [BrowserStop] = 169
    VK_BROWSER_SEARCH = &HAA    ' // [BrowserSearch] = 170
    VK_BROWSER_FAVORITES = &HAB ' // [BrowserFavorites] = 171
    VK_BROWSER_HOME = &HAC      ' // [BrowserHome] = 172

    VK_VOLUME_MUTE = &HAD       ' // [VolumeMute] = 173
    VK_VOLUME_DOWN = &HAE       ' // [VolumeDown] = 174
    VK_VOLUME_UP = &HAF     ' // [VolumeUp] = 175

    VK_MEDIA_NEXT_TRACK = &HB0  ' // [MediaNextTrack] = 176
    VK_MEDIA_PREV_TRACK = &HB1  ' // [MediaPreviousTrack] = 177
    VK_MEDIA_STOP = &HB2    ' // [MediaStop] = 178
    VK_MEDIA_PLAY_PAUSE = &HB3  ' // [MediaPlayPause] = 179

    VK_LAUNCH_MAIL = &HB4       ' // [LaunchMail] = 180
    VK_LAUNCH_MEDIA_SELECT = &HB5 ' // [SelectMedia] = 181
    VK_LAUNCH_APP1 = &HB6       ' // [LaunchApplication1] = 182
    VK_LAUNCH_APP2 = &HB7       ' // [LaunchApplication2] = 183
    ' // UNASSIGNED // = &HB8   ' // ''UNASSIGNED = 184
    ' // UNASSIGNED // = &HB9   ' // ''UNASSIGNED = 185

    VK_OEM_1 = &HBA         ' // [Oem1] = 186           ' ";:" for USA
    ' // UNDEFINED //       ' // [OemSemicolon] = 186       ' ";:" for USA
    VK_OEM_PLUS = &HBB      ' // [Oemplus] = 187        ' "+" any country
    VK_OEM_COMMA = &HBC     ' // [Oemcomma] = 188       ' "," any country
    VK_OEM_MINUS = &HBD     ' // [OemMinus] = 189       ' "-" any country
    VK_OEM_PERIOD = &HBE    ' // [OemPeriod] = 190      ' "." any country
    VK_OEM_2 = &HBF         ' // [Oem2] = 191           ' "/?" for USA
    ' // UNDEFINED //       ' // [OemQuestion] = 191    ' "/?" for USA
    ' // UNDEFINED //       ' // [Oemtilde] = 192       ' "'~" for USA
    VK_OEM_3 = &HC0         ' // [Oem3] = 192           ' "'~" for USA

    ' // RESERVED // = &HC1 to &HD7 (193 to 215)
    ' // UNASSIGNED // = &HD8 to &HDA (216 to 218)

    VK_OEM_4 = &HDB         ' // [Oem4] = 219           ' "[{" for USA
    ' // UNDEFINED //       ' // [OemOpenBrackets] = 219    ' "[{" for USA
    ' // UNDEFINED //       ' // [OemPipe] = 220        ' "\|" for USA
    VK_OEM_5 = &HDC         ' // [Oem5] = 220           ' "\|" for USA
    VK_OEM_6 = &HDD         ' // [Oem6] = 221           ' "]}" for USA
    ' // UNDEFINED //       ' // [OemCloseBrackets] = 221   ' "]}" for USA
    ' // UNDEFINED //       ' // [OemQuotes] = 222      ' "'"" for USA
    VK_OEM_7 = &HDE         ' // [Oem7] = 222           ' "'"" for USA
    VK_OEM_8 = &HDF         ' // [Oem8] = 223

    ' // RESERVED // = &HE0        ' // ''UNASSIGNED = 224
    VK_OEM_AX = &HE1        ' // [OEMAX] = 225          ' "AX" key on Japanese AX kbd
    ' // UNDEFINED //       ' // [OemBackslash] = 226       ' "<>" or "\|" on RT 102-key kbd
    VK_OEM_102 = &HE2       ' // [Oem102] = 226         ' "<>" or "\|" on RT 102-key kbd
    VK_ICO_HELP = &HE3      ' // [ICOHelp] = 227        ' Help key on ICO
    VK_ICO_00 = &HE4        ' // [ICO00] = 228          ' 00 key on ICO

    VK_PROCESSKEY = &HE5    ' // [ProcessKey] = 229
    VK_ICO_CLEAR = &HE6     ' // [ICOClear] = 230
    VK_PACKET = &HE7        ' // [Packet] = 231
    ' // UNASSIGNED // = &HE8   ' // ''UNASSIGNED = 232

    ' NOTE :: Nokia/Ericsson definitions
    VK_OEM_RESET = &HE9     ' // [OEMReset] = 233
    VK_OEM_JUMP = &HEA      ' // [OEMJump] = 234
    VK_OEM_PA1 = &HEB       ' // [OEMPA1] = 235
    VK_OEM_PA2 = &HEC       ' // [OEMPA2] = 236
    VK_OEM_PA3 = &HED       ' // [OEMPA3] = 237
    VK_OEM_WSCTRL = &HEE    ' // [OEMWSCtrl] = 238
    VK_OEM_CUSEL = &HEF     ' // [OEMCUSel] = 239
    VK_OEM_ATTN = &HF0      ' // [OEMATTN] = 240
    VK_OEM_FINISH = &HF1    ' // [OEMFinish] = 241
    VK_OEM_COPY = &HF2      ' // [OEMCopy] = 242
    VK_OEM_AUTO = &HF3      ' // [OEMAuto] = 243
    VK_OEM_ENLW = &HF4      ' // [OEMENLW] = 244
    VK_OEM_BACKTAB = &HF5       ' // [OEMBackTab] = 245

    VK_ATTN = &HF6          ' // [Attn] = 246
    VK_CRSEL = &HF7         ' // [Crsel] = 247
    VK_EXSEL = &HF8         ' // [Exsel] = 248
    VK_EREOF = &HF9         ' // [EraseEof] = 249
    VK_PLAY = &HFA          ' // [Play] = 250
    VK_ZOOM = &HFB          ' // [Zoom] = 251
    VK_NONAME = &HFC        ' // [NoName] = 252
    VK_PA1 = &HFD           ' // [Pa1] = 253
    VK_OEM_CLEAR = &HFE     ' // [OemClear] = 254

    ' // UNASSIGNED // = &HFFFF    ' // [KeyCode] = 65535
    ' // UNASSIGNED // = &H10000    ' // [Shift] = 65536
    ' // UNASSIGNED // = &H20000    ' // [Control] = 131072
    ' // UNASSIGNED // = &H40000    ' // [Alt] = 262144

    End Enum

Notes:

This enumeration is the same as System.Console.ConsoleKey (https://docs.microsoft.com/dotnet/api/system.consolekey), but has a size of 2 bytes instead of 4 bytes.

None.

Documentation
VirtualKeys on MSDN
 

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions