首页 > Windows开发 > 详细

C#Winform获取屏幕大小

时间:2014-03-03 07:20:50      阅读:450      评论:0      收藏:0      [点我收藏+]

两种方法:

1.

Rectangle rect = Screen.GetWorkingArea(this);
int width = rect.Width;
int height = rect.Height;

 

2.

Rectangle rect = System.Windows.Forms.SystemInformation.VirtualScreen;

int width = rect.Width;
int height = rect.Height;

C#Winform获取屏幕大小,布布扣,bubuko.com

C#Winform获取屏幕大小

原文:http://www.cnblogs.com/vincentDr/p/3576385.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!