MaximizeBox 窗体最大化按钮
MaximizeBox = false
这句代码的意思就是:最大化按钮不可用,包括双击标题栏也不能使窗体最大化,单击标题栏最大化按钮为灰色
this.MaximizeBox = false;
this.WindowState = FormWindowState.Maximized;
this.Left = (Screen.PrimaryScreen.Bounds.Width - this.Width) / 2;
this.Top = (Screen.PrimaryScreen.Bounds.Height - this.Height)/2;