Well, it worked for me... the counter must persist outside the sub, so it must be declared at the form level, and then when you click on a button, run code to read the NextValue....


Anyway, I wrote something that will allow you to find out what categories are available ... its rather crude... there is a Process counter in there....

VB Code:
  1. Dim f As PerformanceCounterCategory
  2.         Dim g As Int32
  3.         Dim t As String
  4.         Dim r As Array
  5.         r = System.Diagnostics.PerformanceCounterCategory.GetCategories()
  6.         For g = 0 To r.GetUpperBound(0)
  7.             f = (r.GetValue(g))
  8.             Console.WriteLine(f.CategoryName())
  9.  
  10.         Next