Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Lock VB Application After 5 Min if Inactive

AOA,
i want to lock my VB application (MDI, MIS System contain 20 forms) if it inactive for Specific Time mean if user not working on my application for last 5 min, application auto lock for security purpose

best regards and thanks

Comments

  • dokken2dokken2 Member Posts: 532
    : AOA,
    : i want to lock my VB application (MDI, MIS System contain 20 forms)
    : if it inactive for Specific Time mean if user not working on my
    : application for last 5 min, application auto lock for security
    : purpose
    :

    you would want to add a Timer control and at intervals, maybe every 10-15 secs check if there is some user activity. if the user has clicked a button, moved mouse, etc, you reset your elapsed time counter to zero. the lengthly part is having to add code to every control on your form, the more controls the more complex this becomes. you may want to start by simplifying things- has the mouse moved over a form? then add other controls- has a textbox gotfocus or keypress?

Sign In or Register to comment.