码迷,mamicode.com
首页 > Windows程序 > 详细

winform自动最大化(在不同分辨率情况下)

时间:2018-04-28 14:31:31      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:自动   system   winform   info   drawing   this   code   rect   inf   

load函数末尾加:

System.Drawing.Rectangle rec = Screen.GetWorkingArea(this);

            int SH = rec.Height;

            int SW = rec.Width;
            this.Width = SW;
            this.Height = SH;

 

winform自动最大化(在不同分辨率情况下)

标签:自动   system   winform   info   drawing   this   code   rect   inf   

原文地址:https://www.cnblogs.com/gaara-zhang/p/8966566.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!