Can i know hoe to find the CPU Usage of individual Process in %.
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
1) Processor
2)% Processor Time
3)_Total

Any help will be greatly Appreciated.

Read in System.Diagnostics.PerformanceCounter and you'll know :)

hello let us consider i want to show my cpu usage throw label
then use this coding
first performance counter,label,timer tick,2 button is placed in a form
in button1:(clicked)
timertick1.enabled=true
button1.enabled=false
in button2:(clicked)
timertick1.enabled=false
button2.enabled=false
button1.enabled=true
timertick :
label1.text=cint( "processor value" performance counter1.nextvalue() & "%")
execute it u get a perfect answer

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.