How to detect when the program is idle?

前端 未结 1 1987
无人及你
无人及你 2021-01-21 19:24

For example, how does the program detect when the user hasn\'t used it for 5 minutes?

1条回答
  •  后悔当初
    2021-01-21 20:09

    In WinForms there is an Application.Idle event:

    http://msdn.microsoft.com/en-us/library/system.windows.forms.application.idle.aspx

    0 讨论(0)
提交回复
热议问题