Can anyone tell me how to obtain system info in VB.NET (Windows Form). In VB6 I used to use the SysInfo, but cannot find any similar process in VB.NETHi Michael,
Fromhttp://www.developmentnow.com/g/38_0_0_0_0_0/dotnet-languages-vb.htm
Posted via DevelopmentNow.com Groupshttp://www.developmentnow.com
There are several ways of retrieving, but some low-level hardware info
is retrieved using WMI. To get basic system info such as OS and memory
or storage space details, you can look at:
My.Computer.Info....
To use WMI, look at these:
http://www.codeproject.com/KB/vbscri...dwareInfo.aspx
http://www.a1vbcode.com/download.asp?ID=4196
http://www.freevbcode.com/ShowCode.asp?ID=4571
And here's WMI reference where you can customize you WMI calls using
proper WMI classes:
http://www.webtropy.com/articles/wmi...ns-MicrosoftIE
For example to get VGA card name:
' Don't forget to add reference to System.Management.dll
' ----Begin----------
Try
Dim searcher As New ManagementObjectSearcher _
("root\CIMV2", "SELECT * FROM Win32_VideoController")
For Each queryObj As ManagementObject In searcher.Get()
MsgBox(queryObj.GetPropertyValue("Name").ToString)
Next
Catch err As ManagementException
MessageBox.Show(err.Message)
End Try
' --------End------
Hope this helps,
Onur Güzel