110,534
社区成员
发帖
与我相关
我的任务
分享
this.SetBounds(0, 0, 100, 100);
while (this.Width <500 && this.Height <500)
{
Application.DoEvents();
System.Threading.Thread.Sleep(1);
this.SetBounds(0, 0, ++this.Width, ++this.Height);
//Console.WriteLine(this.Width + " " + this.Height);
}
for (int i = 100; i < 501; i += 5)
{
this.Size = new Size(i,i);
System.Threading.Thread.Sleep(20);
}
Form1.Width+=2;
Form1.height+=2;