窗口抖动

来源:互联网 发布:淘宝秒杀群怎么做 编辑:程序博客网 时间:2024/04/29 20:56

  Random ran = new Random((int)DateTime.Now.Ticks);
            Point point = this.Location;
            for (int i = 0; i < 40; i++)
            {
                this.Location = new Point(point.X + ran.Next(8) - 4, point.Y + ran.Next(8) - 4);
                System.Threading.Thread.Sleep(15);
                this.Location = point;
                System.Threading.Thread.Sleep(15);
            }

原创粉丝点击