全屏 WinForm C#

by

in

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

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

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

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

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