protected override void WndProc(ref Message m) //屏蔽最大化按钮 { switch ((int)(m.WParam)) { case (0xf030): break; default: base.WndProc(ref m); break; } }