執(zhí)行如下按鈕事件 private void btnFormMax_Click(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Maximized) { this.WindowState = FormWindowState.Normal; } else { this.WindowState = FormWindowState.Maximized; } } 窗體最大化時(shí) 非全屏 不會(huì)遮蓋任務(wù)欄 此時(shí)this.FormBorderStyle 默認(rèn)為 Sizable
發(fā)表評(píng)論