Click here to Skip to main content
15,916,378 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: 2000/XP Pin
Sarvesvara (BVKS) Dasa21-Aug-05 16:51
Sarvesvara (BVKS) Dasa21-Aug-05 16:51 
GeneralXML Pin
hung_ngole18-Aug-05 19:13
hung_ngole18-Aug-05 19:13 
GeneralRe: XML Pin
Christian Graus18-Aug-05 19:16
protectorChristian Graus18-Aug-05 19:16 
GeneralRe: XML Pin
toxcct18-Aug-05 20:18
toxcct18-Aug-05 20:18 
GeneralXML Pin
Anonymous18-Aug-05 19:03
Anonymous18-Aug-05 19:03 
GeneralRe: XML Pin
Christian Graus18-Aug-05 19:16
protectorChristian Graus18-Aug-05 19:16 
GeneralHTML Help Pin
tibmark18-Aug-05 18:23
tibmark18-Aug-05 18:23 
GeneralTrying to find the usage of the CPU Pin
Chaos Machine18-Aug-05 15:15
Chaos Machine18-Aug-05 15:15 
Hello everybody. I'm trying to get the percentage of the CPU Usage. So far I have the following code:


Dim query1 As New ManagementObjectSearcher("SELECT * From Win32_Processor")
Dim moa1 As ManagementObject
Dim tempa1 As Long

For Each moa1 In query1.Get()
tempa1 = Long.Parse(moa1("LoadPercentage").ToString())
Label3.Text = tempa1
Next

When I debug with a break point and leave the mouse pointer over the label3.text I get the value of the percentange, but when i run the program without a break point the program seams for ever thinking without giving me the value. I have a timer that runs every second to update the query. What am I doing wrong? Thank you.

Still trying to find the way
GeneralRe: Trying to find the usage of the CPU Pin
Dave Kreskowiak19-Aug-05 7:03
mveDave Kreskowiak19-Aug-05 7:03 
GeneralRe: Trying to find the usage of the CPU Pin
Scott Serl19-Aug-05 10:17
Scott Serl19-Aug-05 10:17 
GeneralRe: Trying to find the usage of the CPU Pin
Dave Kreskowiak19-Aug-05 11:16
mveDave Kreskowiak19-Aug-05 11:16 
Generalmemory resident! Pin
Code Tracker18-Aug-05 15:07
Code Tracker18-Aug-05 15:07 
GeneralRe: memory resident! Pin
Dave Kreskowiak19-Aug-05 6:56
mveDave Kreskowiak19-Aug-05 6:56 
GeneralWindows SDK error message Pin
DaveC42691318-Aug-05 10:50
DaveC42691318-Aug-05 10:50 
GeneralRe: Windows SDK error message Pin
progload19-Aug-05 8:25
progload19-Aug-05 8:25 
GeneralRe: Windows SDK error message Pin
DaveC42691322-Aug-05 4:12
DaveC42691322-Aug-05 4:12 
GeneralRe: Windows SDK error message Pin
progload22-Aug-05 6:03
progload22-Aug-05 6:03 
GeneralRe: Windows SDK error message Pin
DaveC42691322-Aug-05 4:25
DaveC42691322-Aug-05 4:25 
GeneralRe: Windows SDK error message Pin
progload22-Aug-05 6:22
progload22-Aug-05 6:22 
GeneralRe: Windows SDK error message Pin
progload22-Aug-05 10:14
progload22-Aug-05 10:14 
GeneralRe: Windows SDK error message Pin
DaveC42691322-Aug-05 10:56
DaveC42691322-Aug-05 10:56 
GeneralRe: Windows SDK error message Pin
DaveC42691325-Aug-05 7:01
DaveC42691325-Aug-05 7:01 
GeneralRe: Windows SDK error message Pin
DaveC4269139-Sep-05 8:43
DaveC4269139-Sep-05 8:43 
QuestionVBer new to VB.net - handles divide by zero? Pin
DaveC42691318-Aug-05 10:35
DaveC42691318-Aug-05 10:35 
AnswerRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus18-Aug-05 15:09
protectorChristian Graus18-Aug-05 15:09 

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.