Idle control (check if your app is idle)

Category:
Forms and Controls
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
This control will raise an event (Is_Idle) when your application is idle after n Seconds (default is 300). It can be useful for applications which have a login. After n seconds, the user can be prompted to login again.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: