在vb.net中为页面设置超时 [英] Set time out for a page in vb.net

查看:127
本文介绍了在vb.net中为页面设置超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我想为vb.net中设计的页面设置超时时间.就像最终用户离开页面3至4分钟而不做任何操作一样,屏幕保护程序将出现.

如果有人对此有任何想法,请尽快回复我.紧急.

Jayaram Das

Hello,

I want to set a time out period for a page designed in vb.net. Like if an end user left a page for 3 to 4 minutes without doing anything then a screen saver will appear.

If any one have any idea about this then please reply me soon. It is urgent.

Jayaram Das

推荐答案

尝试一下.
使用ur时间的计时器计数(例如4分钟),并在加载表单时启动计时器.当鼠标移动事件或窗体按下事件时重置此计时器.
当计时器达到最大值(4分钟)时,编写退出该页面的代码.
Try this.
Use a Timer count for ur time(eg. 4 min) and start timer when the form load.Reset This timer when the mouse move event or form keydown event.
When timer gots the maximem(4 min.)write the code for leaving that page.


这篇关于在vb.net中为页面设置超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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