Discover Graphics Cards Using Visual Basic

Discover Graphics Name Cards

Can you name the name of a video card from .Net code? Yes, you can use WMI.

Windows Management Instrumentation

WMI is a great library that contains information about the various components needed for the system. To work. Hard disk information, processor information, network components, and the list continue.

Using WMI to Get Business Card

WMI allows you to ask about the data if you know the data how it is organized. Used to look for extensive hardware and operational information related. You can use ManagementObjectSearcher to search for data. It takes two variables. The first parameter is to say which section is called as the scope. And the later parameter is the actual query almost similar to SQL query.

Source Code

Import System. Management

Public Class Form1


Private Sub Button1_Click (ByVal Transmitter As System.Object, _

ByVal e As System.EventArgs) Handles Button1.Click

MsgBox (GetGraphicsCardName ())


Patents GetGraphicsCardName () Like String

Dim GraphicsCardName = String. Empty


Dim WmiSelect As New ManagementObjectSearcher _

("rootCIMV2", "SELECT * FROM Win32_VideoController")

For each WmiResults as a ManagementObject in WmiSelect.Get ()

GraphicsCardName = WmiResults.GetPropertyValue ("Name").

If (Not String.IsNullOrEmpty (GraphicsCardName)) Then


End If


Catch Err Like ManagementException

MessageBox.Show (err.Message)

End Try

Return GraphicsCardName

End Role

Yet Another Category

Source by Pon Saravanan

Leave a Reply

Your email address will not be published. Required fields are marked *