Be a Supporter!
Response to: C# moving your sprite / collision Posted July 1st, 2014 in Programming

In order to capture keystrokes in a Forms control, you must derive a new class that is based on the class of the control that you want, and you override the ProcessCmdKey().

Syntax:

C#:
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
//handle your keys here
}

Source : Arrow Key Movements

Bikitha