C
Chortler
When I debug the following code, the label1.text holds a valid value
for the machines CPU. However, the string 's' holds a zero??
Any ideas??
Dim x As New System.Diagnostics.PerformanceCounter
Dim s As String
x.MachineName = "xp-ts01"
x.CategoryName = "Processor"
x.CounterName = "% Processor Time"
x.InstanceName = 0
s = x.NextValue
Me.Label1.Text = x.NextValue
for the machines CPU. However, the string 's' holds a zero??
Any ideas??
Dim x As New System.Diagnostics.PerformanceCounter
Dim s As String
x.MachineName = "xp-ts01"
x.CategoryName = "Processor"
x.CounterName = "% Processor Time"
x.InstanceName = 0
s = x.NextValue
Me.Label1.Text = x.NextValue