Within a timer you could p/invoke GetLastInputInfo()
which will return the number ms since input was detected from the user, across all processes in the current session.
More Related Contents:
- Why is there a default instance of every form in VB.Net but not in C#?
- Winforms Double Buffering
- Question about terminating a thread cleanly in .NET
- Word wrap for a label in Windows Forms
- How to move and resize a form without a border?
- TabControl with Close and Add Button
- Call a method from another form
- How do I capture the mouse move event
- Invoke NotifyIcon’s Context Menu
- Fade a panel- Windows forms
- C# – How to make two forms reference each other
- Drawing on top of controls inside a panel (C# WinForms)
- How can I display a loading control while a process is waiting for be finished?
- How do you resize a form to fit its content automatically?
- Remove Row inside TableLayoutPanel makes a layout problem
- How to change the font color of a disabled TextBox?
- How can I make a hyperlink work in a RichTextBox?
- How to insert a record into a access table using oledb?
- Abstract UserControl inheritance in Visual Studio designer
- How to get control under mouse cursor? [duplicate]
- Toggle switch control in Windows Forms
- WinForms DataGridView – databind to an object with a list property (variable number of columns)
- How do I prevent print screen
- Prevent from displaying of Windows Security window
- Constrain aspect ratio in WindowsForms DataVisualization Chart
- ComboBox draw image on selected item
- Read nodes of a xml file in C#
- How to use dependency injection in WinForms
- Saving content of a treeview to a file and load it later
- How to create a Button that can send keys to a control without stealing the focus – Virtual Keyboard