vb.net如何检测当前分辨率

2025-04-04 16:39:40
推荐回答(2个)
回答1:

Dim x, y As Long
x = Screen.PrimaryScreen.Bounds.Width.ToString
y = Screen.PrimaryScreen.Bounds.Height.ToString
MsgBox(x & y)

这就是获取当前显示的分辨率

回答2:

使用wmi,具体方法google,还是很简单的……