Does anyone know of a way to track a users idle time in a .Net application. A sample in VB.NET or C# would be great. We have a need to make an application either close or become partially unresponsive if a certain amount of time has passed. It needs to be application wide not just a form. We have tried the stopwatch and timer controls with marginal success. All samples we have seen so far are form specific or mention ASP.NET. We would prefer not to use API calls to do this but if nothing else can be done then perhaps that will be the solution.
Using: Visual Studio 2005, VB.NET, Framework 2.0, XP Pro