My program needs an upgrade and I was looking for the Motherboard name and Maker(Developer).
And here's the problem there is WMI what is offered almost everywhere, and it lines up with Console.Writeline, what i want to do is to get the Label to show the same thing what i get with WMI.
The solution what was offered by Thorster Dittmar, did not work, I tried that at the beginning:
Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class.
It's a bit hard to understand your question, but what I read from it is:
You want to display information you get via WMI in a
Label
, but the output so far is on theConsole
?Well, use the following steps:
Label
on formForm_Load
event handlerConsole.WriteLine(xyz)
dolabel1.Text = xyz
That should be it. If that doesn't answer your question, please edit your question so it becomes clearer what you want.