Categories
.NET

全屏 WinForm C#

下面是让程序全屏的代码,其实非常简单。去除窗体边框,运行最大化,最前方运行。

不过应用时需要注意控件的重新定位。

this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
this.TopMost = true;