1、设置窗体的最大尺寸MaxinumSize属性:
this.MaxinumSize = new System.Drawing.Size(
System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width, System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height)
或
2、设置窗体最大化的尺寸MaximizedBounds 属性:
this.MaximizedBounds = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea