i need help in order to get my cpu id in the programming language visual basic
what i really want to do is to get the cup id to be on a label
i try this code but i get a load of errors
here it is
Imports System.Management
Dim objMOS As ManagementObjectSearcher
Dim objMOC As Management.ManagementObjectCollection
Dim objMO As Management.ManagementObject
objMOS = New ManagementObjectSearcher("Select * From Win32_Processor")
objMOC = objMOS.Get
For Each objMO In objMOC
Label31.Text = ("CPU ID = " & objMO("ProcessorID"))
Next
objMOS.Dispose()
objMOS = Nothing
objMO.Dispose()
objMO = Nothing