A
A
andrey_levushkin2019-01-31 21:15:25
.NET
andrey_levushkin, 2019-01-31 21:15:25

How to display the video card model?

How to display information about the model of the current video card in the textBox?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sumor, 2019-01-31
@andrey_levushkin

Through WMI, something like this:

ManagementObjectSearcher searcher 
     = new ManagementObjectSearcher("SELECT * FROM Win32_DisplayConfiguration");
// или new ManagementObjectSearcher("SELECT * FROM Win32_VideoController");
    string graphicsCard = string.Empty;
    foreach (ManagementObject mo in searcher.Get())
    {
        foreach (PropertyData property in mo.Properties)
        {
           if (property.Name == "Description")
           {
               graphicsCard = property.Value.ToString();
           }
        }
    }

See MSDN for a detailed description of the properties of each of these classes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question