在表单上检测到动作 [英] Action Detected on forms
本文介绍了在表单上检测到动作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个winform应用程序.
我担心的是,如果屏幕上没有任何动作或没有完成任何事件,我想应用一个计时器,该计时器将在几秒钟后显示图像.
如何检测到没有执行任何操作?
在此先感谢.
I have a winform application.
My concern is that if there is no action or no events done on the screen I want to apply a timer which, after few seconds, will display an image.
How can I detect that there is no action done?
Thanks in advance.
推荐答案
使用GetLastInputInfo()
方法
此处 [此处 [在这里 [
Use theGetLastInputInfo()
method
Here[^] is an archive item.
Here[^] is another.
And Here[^] is am SO thread.
这篇关于在表单上检测到动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文