winform自动最大化(在不同分辨率情况下)
2021-04-14 05:26
阅读:541
标签:自动 system winform info drawing this code rect inf load函数末尾加: winform自动最大化(在不同分辨率情况下) 标签:自动 system winform info drawing this code rect inf 原文地址:https://www.cnblogs.com/gaara-zhang/p/8966566.html
System.Drawing.Rectangle rec = Screen.GetWorkingArea(this);
int SH = rec.Height;
int SW = rec.Width;
this.Width = SW;
this.Height = SH;
评论
亲,登录后才可以留言!