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

来源:互联网 发布:it makes sense to 编辑:程序博客网 时间:2024/04/30 21:47
Rectangle ScreenArea = System.Windows.Forms.Screen.GetWorkingArea(this);int width1 = ScreenArea.Width; //屏幕宽度 int height1 = ScreenArea.Height; //屏幕高度this.Location = new System.Drawing.Point(width1 - 窗体宽度, height1 - 窗体高度); //指定窗体显示在右下角

原创粉丝点击