C#Winform获取屏幕大小

来源:互联网 发布:python中文编码问题 编辑:程序博客网 时间:2024/05/01 11:06
Rectangle rect = Screen.GetWorkingArea( this );
Point p =  new  Point(rect.Width,rect.Height);
this .Location = p;

<script type="text/javascript"><!--google_ad_client = "ca-pub-1944176156128447";/* cnblogs 首页横幅 */google_ad_slot = "5419468456";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>