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);

posted on 2016-10-15 18:56  mol1995  阅读(161)  评论(0编辑  收藏  举报

导航