C# winform 窗体覆盖(遮住)系统任务栏 (代码收藏)

时间:2022-09-18 08:07:05

//窗体覆盖任务栏    

 

  this.TopMost = true;
  this.Location = new Point(0, 0);
  this.Size = new Size(Screen.PrimaryScreen.Bounds.Width,Screen.PrimaryScreen.Bounds.Height);

 

 

//窗体覆盖任务栏

 

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