2012-07-02 无边框最大化窗体

this.FormBorderStyle = FormBorderStyle.None; // 窗口最大化时不显示任务栏。

this.WindowState = FormWindowState.Maximized;  //窗口最大化。

要实现覆盖任务栏,需加上两句:

this.SetVisibleCore(false);
this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
this.SetVisibleCore(true);

原文地址:https://www.cnblogs.com/mol1995/p/5965092.html