Rectangle rect = new Rectangle();rect = Screen.GetWorkingArea(this); this.Width = rect.Width;//屏幕宽this.Height = rect.Height;//屏幕高this.ControlBox = false; // 设置不出现关闭按钮this.FormBorderStyle = FormBorderStyle.None;//无边框
本文共 273 字,大约阅读时间需要 1 分钟。
Rectangle rect = new Rectangle();rect = Screen.GetWorkingArea(this); this.Width = rect.Width;//屏幕宽this.Height = rect.Height;//屏幕高this.ControlBox = false; // 设置不出现关闭按钮this.FormBorderStyle = FormBorderStyle.None;//无边框
转载于:https://www.cnblogs.com/luomingui/p/9598447.html