您的位置:首页 > 编程语言 > C#

C# 中如何获得屏幕宽度和高度

2017-04-17 15:16 134 查看
Rectangle ScreenArea = System.Windows.Forms.Screen.GetWorkingArea(this);//
int width1 = ScreenArea.Width; //屏幕宽度 
int height1 = ScreenArea.Height; //屏幕高度
this.Location = new System.Drawing.Point(S_width - 窗体宽度, S_height - 窗体高度); //指定窗体显示在右下角
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: