12345678910111213Rectangle rect = new Rectangle();rect = Screen.GetWorkingArea(this); this.Width = rect.Width;//屏幕宽this.Height = rect.Height;//屏幕高this.ControlBox = false; // 设置不出现关闭按钮this.FormBorderStyle = FormBorderStyle.None;//无边框//名字空间"System.Windows.Forms"中的"Screen"类的GetWorkingArea()方法//Rectangle rect = new Rectangle ( ) ;//rect = Screen.GetWorkingArea ( this ) ;//"屏幕宽"= rect.Width ;//"屏幕长"= rect.Height ; 相关链接(侵删) winfrom 全屏自适应屏幕分辨率 怎样得到桌面的大小? =================我是分割线================= 欢迎到公众号来唠嗑: