Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

VB Key Codes


Guest
 Share

Recommended Posts

I am not sure if this has been posted yet, but here are a list of the VB6 Key Codes for use with the VBKey command.

**vbKeyControl = CTRL Key
vbkeymenu = ALT key (DOES NOT work well in Eclipse)
vbKeyReturn = Enter Key (Main)
vbKeyBack = Back Space
vbKeyTab = Tab
vbKeyShift = Shift
vbKeyCapital = Caps Lock
vbKeyEscape = Esc
vbKeySpace =  Space Bar
vbKeyPageUp =  Page Up
vbKeyPageDown =  Page Down
vbKeyEnd = End
vbKeyHome =  Home
vbKeyLeft = Left arrow
vbKeyUp = Up arrow
vbKeyRight = Right Arrow
vbKeyDown =  Down Arrow
vbKeyPrint = Print Screen
vbKeyPause = Pause (The one next to printscreen)
vbKeyInsert = Insert
vbKeyDelete = Delete (the one near insert)
vbKeyHelp = Help
vbKeyNumlock =  Numlock
vbKeyF1 = F1
vbKeyF2 = F2
vbKeyF3 = F3
vbKeyF4 = F4
vbKeyF5 = F5
vbKeyF6 = F6
vbKeyF7 = F7
vbKeyF8 = F8
vbKeyF9 = F9
vbKeyF10 = F10
vbKeyF11 = F11
vbKeyF12 = F12
vbKeyZ = Z
vbKeyx = X
vbKeyc = C
vbKeyv = V
vbKeyb = B
vbKeyn = N
vbKeym = M
vbKeya = A
vbKeys = S
vbKeyd =  D
vbKeyf = F
vbKeyg = G
vbKeyh = H
vbKeyj = J
vbKeyk = K
vbKeyl = L
vbKeyq = Q
vbKeyw = W
vbKeye = E
vbKeyr = R
vbKeyt = T
vbKeyy = Y
vbKeyu = U
vbKeyi = I
vbKeyo = O
vbKeyp = P
vbKeyNumpad0 = Num Pad 0
vbKeyNumpad1 = Num Pad 1
vbKeyNumpad2 = Num Pad 2
vbKeyNumpad3 = Num Pad 3
vbKeyNumpad4 = Num Pad 4
vbKeyNumpad5 = Num Pad 5
vbKeyNumpad6 = Num Pad 6
vbKeyNumpad7 =  Num Pad 7
vbKeyNumpad8 = NumPad 8
vbKeyNumpad9 = Num Pad 9
vbKeyMultiply = Num Pad *
vbKeyAdd = Num Pad +
vbKeySubtract = Num Pad -
vbKeyDivide = Num Pad /
vbKeySeparator = Num Pad Enter
vbKeyDecimal = Num Pad .
vbKey0 = Normal 0 from top of keyboard
vbKey1 = Normal 1 from top of keyboard
vbKey2 = Normal 2 from top of keyboard
vbKey3 = Normal 3 from top of keyboard
vbKey4 = Normal 4 from top of keyboard
vbKey5 = Normal 5 from top of keyboard
vbKey6 = Normal 6 from top ofkeybaorrd
vbKey7 = Normal 7 from top of keyboard
vbKey8 = Normal 8 from top of keybaord
vbKey9 = Normal 9 from top of keyboard**

Hope this helps!
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...