int Width = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;//
int Height = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;//获取屏幕大小
this.Size = new Size(0, 0);
int x, y;
while (this.Width <= Width || this.Height <= Height)
{
Application.DoEvents();
System.Threading.Thread.Sleep(1);
x = this.Width + 2;
y = this.Height + 1;
this.Size = new Size(x, y);
this.CenterToScreen();
}
注:点击按钮实现 加载的时候有点问题