全屏代码,通过设置背景颜色可以实现蓝屏,黑屏等:

 

this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.BackColor = Color.Blue;//蓝屏,设置背景颜色  jihua.cnblogs.com

 

退出全屏代码:

WindowState = FormWindowState.Normal;
            FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
            BackColor = SystemColors.Control;// 回复默认颜色 jihua.cnblogs.com

相关文章:

  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
猜你喜欢
  • 2021-12-31
  • 2022-01-10
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
相关资源
相似解决方案