Results 1 to 4 of 4

Thread: log off the application

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    log off the application

    Hi,

    I developed a payroll software and i want if any body login to the payroll system
    and they leave application ideal then after some time it will log off the user automatically



    thanks

  2. #2
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: log off the application

    Use a timer and the mouse move over the application...

    Something like, if there isn't any movement over the application GUI, start the timer, if mouse move, restart the timer, if not just put a limit to make the application logoff.

    Rate People That Helped You
    Mark Thread Resolved When Resolved

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    Re: log off the application

    this is used in every forms or in main menu form

  4. #4
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: log off the application

    It depends of your application, if you have a mdi container form you only need in the main form, if you have several forms, you need to detect the move in every one..

    Just use a global var with the limit of inactivity time, use a class to start and check the timer, in the mouse move in the form(s), just put something to start the timer. In the class just have a function that checks in every tick if the limit its reached...

    Rate People That Helped You
    Mark Thread Resolved When Resolved

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