C#Winform获取屏幕大小

时间:2014-03-03 07:20:50   收藏:0   阅读:451

两种方法:

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

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!