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 ManagementObjec t in searcher.Get()
Console.WriteLi ne("-----------------------------------")
Console.WriteLi ne("Win32_Produ ct instance")
Console.WriteLi ne("-----------------------------------")
Console.WriteLi ne("Caption: {0}", queryObj("Capti on"))
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 ManagementObjec t in searcher.Get()
Console.WriteLi ne("-----------------------------------")
Console.WriteLi ne("Win32_Produ ct instance")
Console.WriteLi ne("-----------------------------------")
Console.WriteLi ne("Caption: {0}", queryObj("Capti on"))
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
Comment