c#实现程序不被关闭,隐藏任务栏

public Form1()
{
InitializeComponent();
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
//this.WindowState=FormWindowState.Maximized;
this.ShowInTaskbar = false;
this.SetVisibleCore(false);
this.FormBorderStyle = FormBorderStyle.None;
this.SetVisibleCore(true);
}

posted @ 2023-11-03 15:47  感生  阅读(258)  评论(0编辑  收藏  举报