automatic close not used form?
<p>how can i catch when the form not used by the user 
i need to make form that will closed after 5 minutes if the user don't make any action on this form  with C# Code Please help me </p>

<p>I make this code for closing system after 5 minutes </p>

<pre><code>        Timer.Interval = (1000) * (300); 
        Timer.Enabled = true;
        Timer.Start();  

 private void Timer_Tick(object sender, EventArgs e)
        {
            Close(); 
        }
</code></pre>

<p>But i need to make this code active if the form not used . </p>
