码迷,mamicode.com
首页 > Windows程序 > 详细

C#中如何获得屏幕的宽高

时间:2020-05-18 18:26:52      阅读:90      评论:0      收藏:0      [点我收藏+]

标签:src   屏幕宽度   win   cli   poi   wing   int   获得   宽高   

技术图片
1 System.Windows.Forms.Screen.GetWorkingArea(this);
2             int width = ScreenArea.Width;//屏幕宽度
3             int height = ScreenArea.Height;//屏幕高度
4             this.Location = new System.Drawing.Point(width - this.Width, height - this.Height);//指定窗体显示在右下角
View Code

 

C#中如何获得屏幕的宽高

标签:src   屏幕宽度   win   cli   poi   wing   int   获得   宽高   

原文地址:https://www.cnblogs.com/fanjianzhi/p/12911935.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!