Click here to Skip to main content
16,014,392 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Concept Clarification Pin
AliAmjad12-Sep-08 8:07
AliAmjad12-Sep-08 8:07 
GeneralRe: Concept Clarification Pin
Paul Conrad12-Sep-08 9:04
professionalPaul Conrad12-Sep-08 9:04 
GeneralRe: Concept Clarification Pin
AliAmjad12-Sep-08 11:19
AliAmjad12-Sep-08 11:19 
GeneralRe: Concept Clarification Pin
Dave Kreskowiak12-Sep-08 12:18
mveDave Kreskowiak12-Sep-08 12:18 
AnswerRe: Concept Clarification Pin
Guffa12-Sep-08 11:28
Guffa12-Sep-08 11:28 
QuestionPrinter showing Spoling status after printing through VB application Pin
praveenhathwar11-Sep-08 21:11
praveenhathwar11-Sep-08 21:11 
AnswerRe: Printer showing Spoling status after printing through VB application Pin
Paul Conrad12-Sep-08 5:45
professionalPaul Conrad12-Sep-08 5:45 
QuestionCalculating the CPU usage of ONE process with VB.NET 2003 Pin
Chaos Machine11-Sep-08 20:09
Chaos Machine11-Sep-08 20:09 
Hello everybody,
I have a big issue that I can't seem to be able to solve. I need to find a SINGLE CPU process (one program that I know the name of), and display it into a label.

For example My_program ---> 20%

I use (on a timer)

Private m_PerformanceCounter As New System.Diagnostics.PerformanceCounter("Processor", "% Processor Time", "_Total")

ListBox1.Items.Add(CInt(m_PerformanceCounter.NextValue()) & "%")

but I think I get ALL processes added up. I just want ONE of them

for example (in pseudocode)

if process.name = "My_program" then label1.text=process.CPUUsageTimeOfTHatProcess

How can I do it with VB.NET? Any help will be much appreciated. Thank you in advance.

Still trying to find the way

AnswerRe: Calculating the CPU usage of ONE process with VB.NET 2003 Pin
Dave Kreskowiak12-Sep-08 1:45
mveDave Kreskowiak12-Sep-08 1:45 
QuestionXML XPath search in vb.net Pin
japel11-Sep-08 12:10
japel11-Sep-08 12:10 
QuestionControl master/wave/mic of soundcard Pin
Me kiter11-Sep-08 8:01
Me kiter11-Sep-08 8:01 
AnswerRe: Control master/wave/mic of soundcard Pin
jzonthemtn11-Sep-08 10:05
jzonthemtn11-Sep-08 10:05 
Questionmetaphones Pin
lawasso11-Sep-08 4:16
lawasso11-Sep-08 4:16 
AnswerRe: metaphones Pin
leppie11-Sep-08 4:34
leppie11-Sep-08 4:34 
QuestionVBScript - View Source Pin
Reelix11-Sep-08 3:55
Reelix11-Sep-08 3:55 
AnswerRe: VBScript - View Source Pin
jzonthemtn11-Sep-08 6:24
jzonthemtn11-Sep-08 6:24 
GeneralRe: VBScript - View Source Pin
Reelix11-Sep-08 20:11
Reelix11-Sep-08 20:11 
QuestionVB.net Searching File for string Pin
Maffyx11-Sep-08 3:29
Maffyx11-Sep-08 3:29 
AnswerRe: VB.net Searching File for string Pin
jzonthemtn11-Sep-08 6:28
jzonthemtn11-Sep-08 6:28 
GeneralRe: VB.net Searching File for string Pin
Maffyx11-Sep-08 10:31
Maffyx11-Sep-08 10:31 
GeneralRe: VB.net Searching File for string Pin
Maffyx13-Sep-08 18:58
Maffyx13-Sep-08 18:58 
GeneralRe: VB.net Searching File for string Pin
Maffyx13-Sep-08 20:05
Maffyx13-Sep-08 20:05 
GeneralRe: VB.net Searching File for string Pin
Maffyx13-Sep-08 20:42
Maffyx13-Sep-08 20:42 
QuestionVBA Quicky Pin
harveyhanson11-Sep-08 0:51
harveyhanson11-Sep-08 0:51 
AnswerRe: VBA Quicky Pin
ChandraRam11-Sep-08 1:20
ChandraRam11-Sep-08 1:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.