Categories
.NET

全屏 WinForm C#

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

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

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

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.