c#获取电脑屏幕的宽度和高度

来源:互联网 发布:淘宝网睡眠面膜 编辑:程序博客网 时间:2024/04/30 19:02
            Rectangle ScreenArea =                    System.Windows.Forms.Screen.GetBounds(this);
            int width1 = ScreenArea.Width; //屏幕宽度
            int height1 = ScreenArea.Height; //屏幕高度
原创粉丝点击