Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cursor keys

Status
Not open for further replies.

Detective

Programmer
Mar 8, 2002
15
NL
Hi,

Does anyone know the ASCII-codes of the cursor keys?
 
Hi,

I think you mean the left, right , up and down arrows.
You can use the Values VK_LEFT, VK_RIGHT, VK_UP and VK_DOWN in your code. They represent the follwing ascii codes:
LEFT = 37, RIGHT = 39, UP=38, DOWN=39

Steph
 
Note that these VK_ values are not ASCII values, and in many circumstances you can't use them in an event that expects a char, like an OnKeyPress event. Instead, you should use an event which expects a Key value, like OnKeyDown or OnKeyUp. See help on OnKeyDown and Virtual Key Codes for more info.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top