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

//窗体覆盖任务栏    

 

  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;

 

 

你可能感兴趣的:(代码收藏,winform,任务,c#)