Okay well I have about tried everything.
even just tried putting the default WMI code in there without chaning it or using other WMI codes from the web.
It seems as if WMI is not returning anything to what I ask in Visual basic.
I'll once again post my code here regarding obtaining the data, and tell me please why it would not work.
Code:Imports System Imports System.Management Imports System.Windows.Forms Public NotInheritable Class about_box Public Overloads Shared Function Main() As Integer Dim vidCard As String Dim VidMem As Integer Try Dim searcher As New ManagementObjectSearcher( _ "root\CIMV2", _ "SELECT * FROM Win32_VideoController") For Each queryObj As ManagementObject In searcher.Get() vidCard = queryObj("VideoProcessor") vidMem = queryObj("AdapterRAM") Next Catch err As ManagementException MessageBox.Show("An error occurred while querying for WMI data: " & err.Message) End Try End Function
Summary:Code:Private sub AboutBox1_Load Dim VidCard As String Dim VidMem As Integer vid_label.Text = VidCard & (VidMem / 1000000) & " mb" End Sub
1) Get VideoProcessor value from WIN32_VideoController
2) Get Adapter ram value from WIN32_VideoController
3) Out put these value's to a Label.text
That is what I want plain and simple (and don't tell me that is not clear please)




Reply With Quote