Results 1 to 2 of 2

Thread: [3.0/LINQ] Detect activity on the application

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    484

    [3.0/LINQ] Detect activity on the application

    Hi There,

    I would like to know what is the best way to detect if a user had any activity on the application I wrote as I need to do an automatic log off function for the application if the user did not work on the application at all.

    Regards

    PlayKid

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [3.0/LINQ] Detect activity on the application

    Handle all keyboard and mouse events in a single method wherein you reset a timer each time the event is raised (implying that the timer is reset whenever the users moves the mouse over the form or presses keys when using the application).

    This could be quite intrusive though, so you may want to consider handling very specific events such as just mouse clicks, keypresses, etc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width