📜  c# 获取显示分辨率 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:45.546000             🧑  作者: Mango

代码示例1
string screenWidth = Screen.PrimaryScreen.Bounds.Width.ToString();
string screenHeight = Screen.PrimaryScreen.Bounds.Height.ToString();
Label1.Text = ("Resolution: " + screenWidth + "x" + screenHeight);