private void timer1_Tick(object sender, EventArgs e)
{
int ScreenWidth = SystemInformation.PrimaryMonitorMaximizedWindowSize.Width;
int ScreenHeight = SystemInformation.PrimaryMonitorMaximizedWindowSize.Height;
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, MyPos.Y);
}
}