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

load函数末尾加:

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

            int SH = rec.Height;

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

猜你喜欢

转载自www.cnblogs.com/gaara-zhang/p/8966566.html
今日推荐