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.
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.
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
http://msdn.microsoft.com/en-us/library/system.windows.forms.keys.aspx
Keys.Up, Keys.Left, Keys.Right, Keys.Down.