天天看點

WinForm 視窗最大化(覆寫工作列)

//視窗最大化(覆寫工作列)
           if (this.WindowState == FormWindowState.Maximized)
           {
               this.WindowState = FormWindowState.Normal;
           }
           else
           {
               this.FormBorderStyle = FormBorderStyle.None;
               this.WindowState = FormWindowState.Maximized;
           }