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
I make this code for closing system after 5 minutes
Timer.Interval = (1000) * (300);
Timer.Enabled = true;
Timer.Start();
private void Timer_Tick(object sender, EventArgs e)
{
Close();
}
But i need to make this code active if the form not used .