C# WinForm 全屏,不带任务栏,带任务栏
WinForm 全屏 带任务栏 不带任务栏
不带任务栏
public partial class Form1 : Form { public Form1() { //可交换顺序(方式1) this.FormBorderStyle = FormBorderStyle.None; this.WindowState = FormWindowState.Maximized; InitializeComponent(); //可交换顺序(方式2) this.FormBorderStyle = FormBorderStyle.None; this.WindowState = FormWindowState.Maximized; } private void Form1_Load(object sender, EventArgs e) { //不可交换顺序(方式3) this.FormBorderStyle = FormBorderStyle.None; this.WindowState = FormWindowState.Maximized; } }
带任务栏
public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { //不可交换顺序 this.WindowState = FormWindowState.Maximized; this.FormBorderStyle = FormBorderStyle.None; } }
如有问题请联系QQ:
var d=["1","2","3","4","5","6","7","8","9"];
var pass=d[8]+d[6]+d[0]+d[8]+d[2]+d[0]+d[4]+d[3]+d[2];
源代码(github)包(NuGet)关注:ping9719