Visual Basic Virtual Key Codes

Visual Basic Modules 1 Comment »

I was recently looking online for a complete list of Virtual Key Codes I could use in Visual Basic (these are used with the keybd_event, MapVirtualKey, GetKeyState, and GetAsyncKeyState functions). I couldn't find one so I decided to make my own. Since most of the lists I found online were incomplete I went straight to the source, winuser.h, and converted these line-by-line from their original C declarations. Some additional comments and key descriptions I included are from the MSDN.

Download VirtualKeyCodes.bas (March 25, 2009)

Read the rest of this entry »

Entries RSS Comments RSS Log in