1,486
社区成员
发帖
与我相关
我的任务
分享
Private Sub Command1_Click()
Dim s, System, item
Set System = GetObject("winmgmts:").InstancesOf("Win32_DesktopMonitor")
For Each item In System
s = s & "caption:" & item.Caption & vbCrLf
s = s & "Description:" & item.Description & vbCrLf
s = s & "ScreenWidth:" & item.ScreenWidth & vbCrLf
s = s & "ScreenHeight:" & item.ScreenHeight & vbCrLf
s = s & "MonitorManufacturer:" & item.MonitorManufacturer & vbCrLf
Next
Debug.Print s
End Sub