VB Detect Idle time
问题 I'm looking for a way to detect if the user has been idle for 5 min then do something, and if and when he comes back that thing will stop, for example a timer. This is what i have tried (but this will only detect if form1 has been inactive / not clicked or anything): Public Class Form1 Private Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'You should have already set the interval in the designer... Timer1.Start() End Sub Private Sub form1_KeyPress(ByVal