I'm pretty new to c sharp... can't get this going. When the user presses z move my animation. This is what I have coded but nothing happens. What am I doing wrong.
Code:
private void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
switch (e.KeyChar)
{
case 'Z':
tank1.TurnBarrelLeft();
break;
case 'X':
tank1.TurnBarrelRight();
break;
}
}.
Comment