在C#中以Windows格式获取屏幕大小(以像素为单位)

时间:2012-10-10 10:09:27

标签: .net winforms c#-4.0

  

可能重复:
  How to retrieve the Screen Resolution from a C# winform app?

如何在Windows窗体中获取屏幕大小?

1 个答案:

答案 0 :(得分:35)

检查Screen类及其属性Bounds

Screen.PrimaryScreen.Bounds.Width;
Screen.PrimaryScreen.Bounds.Height;
Screen.PrimaryScreen.Bounds.Size;