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

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

 

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



分享名称:C#WinForm程序的全屏功能代码
文章URL:http://bzwzjz.com/article/josohs.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 成都网站建设 成都网站制作 定制网站建设 网站制作 app网站建设 营销型网站建设 网站建设 成都网站建设 营销网站建设 企业网站设计 成都响应式网站建设 重庆网站制作 成都网站建设 营销型网站建设 定制网站设计 网站建设费用 营销网站建设 温江网站设计 四川成都网站制作 成都网站建设公司 成都网站建设流程 企业网站建设公司