在一定时间后注销用户或关闭Windows应用程序 [英] log out the user or close the windows application after certain time

查看:153
本文介绍了在一定时间后注销用户或关闭Windows应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2005中使用vb.net开发了windows应用程序



i想要仅为我的应用程序捕获非活动时间。



如果用户不使用我的应用程序(已经打开),比如5分钟,我想自动退出用户并关闭应用程序。



但我想仅为我的应用程序捕获不活动。如果用户在我的应用程序之外做了某些事情,请说打开excel,或使用任何其他应用程序然后不应该计算。



任何想法怎么做?

i have windows application developed in visual studio 2005 using vb.net

i want to capture inactive time for my app only.

If the user don't use my app (which is opened already) for say 5 mins i want to auto log out the user and close the application.

But i want to capture inactivity only for my application. If user does something outside my app say open excel, or using any other app then that should not count.

Any idea how to do this ??

推荐答案

Codeproject中有一篇关于自动的好文章应用程序中的定时用户注销工具:应用程序空闲 [ ^ ]
There is a good article in Codeproject about automatic timed user-log-out facility in an application:Application Idle[^]


这篇关于在一定时间后注销用户或关闭Windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆