int w = System.Windows.Forms.SystemInformation.VirtualScreen.Width;//获取屏幕宽度
int h = System.Windows.Forms.SystemInformation.VirtualScreen.Height;//获取屏幕高度
this.MaximumSize = new Size(w, h);
this.MinimumSize = new Size(w, h);
this.Location = new Point(0, 0);//设置初始位置
this.Width = w;//设置宽度
this.Height = h;//设置高度
C#WinForm全屏显示
最新推荐文章于 2023-09-25 12:15:13 发布