
private void timer1_Tick(object sender, EventArgs e) { Point MyPos = new Point(this.DesktopLocation.X, this.DesktopLocation.Y); //窗体的当前位置 if (MyPos.X Width < ScreenWidth) { this.DesktopLocation = new Point(MyPos.X 1,MyPos .Y ); } else { this.DesktopLocation = new Point(0, 0); } }


评论