Get hardware information such as Graphic Card capabilities

前端 未结 3 1132
萌比男神i
萌比男神i 2020-12-04 00:29

I\'m writing a program that is using a validation of graphic card. I tried using multiple ways; the closest one i found was using:

lblGrapics.Text = infotype         


        
3条回答
  •  囚心锁ツ
    2020-12-04 01:03

    "invalid namespace" is not about System.Management, it is because the first parameter of

    Dim WmiSelect As New ManagementObjectSearcher _("rootCIMV2", "SELECT * FROM 
    

    is not accepted.

    Try to use another constructor without first parameter:

    Dim WmiSelect As New ManagementObjectSearcher _("SELECT * FROM Win32_VideoController")
    

提交回复
热议问题