重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

C#WinForm程序的全屏功能代码

  1. private void tsbFullWindow_Click(object sender, EventArgs e) 
  2.     if (tsbFullWindow.Text == "全屏") 
  3.     { 
  4.         tsbFullWindow.Text = "取消全屏"; 
  5.         tsbFullWindow.Image = Properties.Resources.minimize; 
  6.         this.SetVisibleCore(false); 
  7.         this.FormBorderStyle = FormBorderStyle.None; 
  8.         this.WindowState = FormWindowState.Maximized; 
  9.         this.SetVisibleCore(true); 
  10.     } 
  11.     else 
  12.     { 
  13.         tsbFullWindow.Text = "全屏"; 
  14.         tsbFullWindow.Image = Properties.Resources.maximize; 
  15.         this.SetVisibleCore(false); 
  16.         this.FormBorderStyle = FormBorderStyle.Sizable; 
  17.         this.WindowState = FormWindowState.Maximized; 
  18.         this.SetVisibleCore(true); 
  19.     } 

 

企业建站必须是能够以充分展现企业形象为主要目的,是企业文化与产品对外扩展宣传的重要窗口,一个合格的网站不仅仅能为公司带来巨大的互联网上的收集和信息发布平台,成都创新互联公司面向各种领域:成都社区文化墙成都网站设计成都全网营销推广解决方案、网站设计等建站排名服务。



当前名称:C#WinForm程序的全屏功能代码
文章起源:http://cqcxhl.com/article/josohs.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP