C# WinForm 技巧十: winfrom 全屏自适应屏幕分辨率
2021-07-12 15:07
阅读:522
标签:arp width screen this get highlight 边框 无边框 his C# WinForm 技巧十: winfrom 全屏自适应屏幕分辨率 标签:arp width screen this get highlight 边框 无边框 his 原文地址:https://www.cnblogs.com/luomingui/p/9598447.html
Rectangle rect = new Rectangle();
rect = Screen.GetWorkingArea(this);
this.Width = rect.Width;//屏幕宽
this.Height = rect.Height;//屏幕高
this.ControlBox = false; // 设置不出现关闭按钮
this.FormBorderStyle = FormBorderStyle.None;//无边框
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:C# WinForm 技巧十: winfrom 全屏自适应屏幕分辨率
文章链接:http://soscw.com/index.php/essay/104217.html
文章标题:C# WinForm 技巧十: winfrom 全屏自适应屏幕分辨率
文章链接:http://soscw.com/index.php/essay/104217.html
评论
亲,登录后才可以留言!