Page 1 of 1

Making a computer spec program but im stuck

Posted: Thu Feb 17, 2011 8:21 pm
by Laz0r
hey im using My.Computer.Info. command for getting computer info in my app.

but i dont know how to show the grapich card and motherboard etc.

could someone give me code?

Re: Making a computer spec program but im stuck

Posted: Thu Feb 17, 2011 8:26 pm
by Snyper345
http://www.vbforums.com/showthread.php?t=508069

see if any of that helps,
i made a console application which shows your specs but not your motherboard or graphics card

Re: Making a computer spec program but im stuck

Posted: Thu Feb 17, 2011 8:29 pm
by Laz0r
i need to make something like this: http://www.piriform.com/media/11742/speccy1.png

Re: Making a computer spec program but im stuck

Posted: Thu Feb 17, 2011 8:34 pm
by Codex
Get graphic card name:
Code: Select all
Imports System.Management
Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, _
                            ByVal e As System.EventArgs) Handles Button1.Click
        MsgBox(GetGraphicsCardName())
    End Sub
    Private Function GetGraphicsCardName() As String
        Dim GraphicsCardName = String.Empty
        Try
            Dim WmiSelect As New ManagementObjectSearcher _
            ("root\CIMV2", "SELECT * FROM Win32_VideoController")
            For Each WmiResults As ManagementObject In WmiSelect.Get()
                GraphicsCardName = WmiResults.GetPropertyValue("Name").ToString
                If (Not String.IsNullOrEmpty(GraphicsCardName)) Then
                    Exit For
                End If
            Next
        Catch err As ManagementException
            MessageBox.Show(err.Message)
        End Try
        Return GraphicsCardName
    End Function
End Class
I got it from some website.

Re: Making a computer spec program but im stuck

Posted: Fri Feb 18, 2011 2:38 pm
by Laz0r
dident work, got errors

Re: Making a computer spec program but im stuck

Posted: Fri Feb 18, 2011 9:27 pm
by Agust1337
Can you tell me what the error's are?