S
shane
I am trying to get values from a WMI Query in my textbox, txtResults I don't
think I am understand what I need to do to move the value from the for each
statement in the quary into the textbox, as the default implementation just
provides for outputing information in the console.
' this wont work and when i try to replace the console writeline with some
kind of txtresluts.text .,.....I either get an error or only the first set
of values returned.
For Each queryObj As ManagementObject in searcher.Get()
Console.WriteLine("-----------------------------------")
Console.WriteLine("Win32_Product instance")
Console.WriteLine("-----------------------------------")
Console.WriteLine("Caption: {0}", queryObj("Caption"))
Next.
I can write values in a class property that do not return multiple values,
but am not able to get a return on anything but the first set of values.
What Am I doing Wrong???
thanks..Shane
think I am understand what I need to do to move the value from the for each
statement in the quary into the textbox, as the default implementation just
provides for outputing information in the console.
' this wont work and when i try to replace the console writeline with some
kind of txtresluts.text .,.....I either get an error or only the first set
of values returned.
For Each queryObj As ManagementObject in searcher.Get()
Console.WriteLine("-----------------------------------")
Console.WriteLine("Win32_Product instance")
Console.WriteLine("-----------------------------------")
Console.WriteLine("Caption: {0}", queryObj("Caption"))
Next.
I can write values in a class property that do not return multiple values,
but am not able to get a return on anything but the first set of values.
What Am I doing Wrong???
thanks..Shane