I found the following code thru the net-
But I not getting it.
Private m_PerformanceCounter As New System.Diagnostics.PerformanceCounter("Processor", "% Processor Time", "_Total") Dim cupcount As String = CInt(m_PerformanceCounter.NextValue()) & "%"
Here m_PerformanceCounter.NextValue() will gives the cpu usage percentage
What we have to write in place of these
2)% Processor Time
Any help will be greatly Appreciated.