views:

1264

answers:

2

Can anyone please help me to get the keycodes for the arrow keys in c# .net keypress events? Can you help me to get out of this check point?

best regards, Arun.

+4  A: 

Do you mean the KeyUp event? KeyPress doesn't get fired for Arrows and the event args doesn't have a KeyCode property but for Arrow Keys in keyUp event they are:

Keys.Up, Keys.Down, Keys.Left, Keys.right

JoshBerke
Thank u buddy.. got it.
Arun
Great glad to help.
JoshBerke
+2  A: 

http://msdn.microsoft.com/en-us/library/system.windows.forms.keys.aspx

Keys.Up, Keys.Left, Keys.Right, Keys.Down.

shahkalpesh