I’ve updated my PerformanceHelper class that I’ll throw around certain code blocks to help trend or monitor performance. Before it was merely a PerformanceCounter wrapper with a few metrics, but now you can specify Console, Debug and/or Perfmon. You do this by using an XOR ( ’|’ ) in a new Constructor. Here’s an example which outputs to [...]
Archive for October, 2007
Here’s one of those real-world situations that no one bothers to demo. If you are building a form or have some sort of input your gathering from the user, you’ll likely want the first input control Focused initially. You have a few ways to do this (in ascending order of recommendation): Call Focus() on the [...]