private void
ShakeWindow()
{
Random
ran = new
Random();
System.Drawing.Point point =
this.Location;
for (int i = 0; i < 30;
i++)
{
this.Location = new System.Drawing.Point(point.X + ran.Next(8), point.Y +
ran.Next(8));
System.Threading.Thread.Sleep(15);
this.Location =
point;
System.Threading.Thread.Sleep(15);
}
}
原文地址:http://www.cnblogs.com/haofaner/p/3772636.html