开发者

C# Application_Idle does not fire when MessageBox or FileDialogue is active... Any alternates?

开发者 https://www.devze.com 2023-01-18 15:20 出处:网络
We have implemented Application_Idle event in our application. This works great, and users are pr开发者_JS百科omptly asked to enter the password if the session is idle for about 20 minutes.

We have implemented Application_Idle event in our application. This works great, and users are pr开发者_JS百科omptly asked to enter the password if the session is idle for about 20 minutes.

However, if there is a message-box open or a File Dialogue open to Save/Open the file. Application_Idle never fires. Even if we leave the application idle overnight.

This is a big of a security concern. Any ideas will be appreciated.


Instead of the idle event use a timer that will lock the application after a configurable timeout. Needless to say, the timer needs to be reset, when the user is interacting with the application.

0

精彩评论

暂无评论...
验证码 换一张
取 消