0
內CPU使用率我已經定義了一個實例爲:顯示一個RichTextBox
PerformanceCounter perf =
new PerformanceCounter("Processor", "% Processor Time", "_Total", ".");
我希望這些信息被一個RichTextBox中顯示。這是我的我打電話實例:
richTextBox1.AppendText("CPU Load: {0}", PerformanceCouner.NextValue());
但「NextValue」總是說連接到它的錯誤:
CPU_information.PerformanceCounter不包含NextValue的定義。
我真的需要一些幫助。謝謝。