Point point = this.Location;
switch (e.KeyData)
{
case Keys.Up:
point.Y -= 2;
break;
case Keys.Down:
point.Y += 2;
break;
case Keys.Right:
point.X += 2;
break;
case Keys.Left:
point.X -= 2;
break;
case Keys.Escape:
this.Close();
break;
default: break;
}
this.Location = point;
欢迎光临 CSkin博客 (http://bbs.cskin.net/) | Powered by Discuz! X3.2 |