Merhaba.Uyumadan önce yazıyım dedim
Aşağıda yapılabilecek yöntemlerden birini yazdım. Umarım işine yarar.
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
bool b = false;
switch (keyData)
{
case Keys.Left:
Guncelle(-1, 0);
break;
case Keys.Right:
Guncelle(+1, 0);
break;
case Keys.Up:
Guncelle(0, -1);
break;
case Keys.Down:
Guncelle(0, +1);
break;
default:
break;
}
return b;
}
void Guncelle(int x, int y)
{
Point p = new Point(button1.Location.X+x,button1.Location.Y+y);
button1.Location = p;
}