获取屏幕分辨率
System.Windows.Forms.Screen screen = Screen.PrimaryScreen;
System.Drawing.Rectangle rct = screen.Bounds;
// rct.Height; rct.Width; 即是屏幕的高和宽
本文作者:清风行云
目前我开通了新博客,最新的内容和资讯都会第一时间在新博客发布,欢迎关注我的新博客 iFreeThinking.com !
System.Windows.Forms.Screen screen = Screen.PrimaryScreen;
System.Drawing.Rectangle rct = screen.Bounds;
// rct.Height; rct.Width; 即是屏幕的高和宽