C#获取屏幕尺寸

Screen sc = Screen.PrimaryScreen;
            int a = sc.Bounds.Width;
            int b = sc.Bounds.Height;
            MessageBox.Show(a.ToString() + " " + b.ToString());

你可能感兴趣的:(C#获取屏幕尺寸)