说明:
闲来无事......应该没人有这样的需求
部分代码:
[C#] 纯文本查看 复制代码 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;
案例源码下载:
|