title: How to detect my application is idle in c#?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1541981/check-if-an-application-is-idle-for-a-time-period-and-lock-it">Check if an application is idle for a time period and lock it</a>  </p>
  </blockquote>
  
  
  
  <p>Suppose I have a Windows product developed with C#. Now a requirement comes that if that application running and idle and when user try to interact with that application again then a login screen come. How to detect that my applications is idle when it is running? Please guide me to complete the job.</p>