I need a bit of help / advice. I'm writing an application (vb.net) at the moment and I am wanting the login screen to reappear after 10 mins of no usage.
My application has a main form called frmMain and uses MDI forms within the main form. The way I was thinking of doing this was adding a onclick method to the frmMain that records a time stamp of every click, and holds within a variable. Then add a timer to the frmMain that every 2mins it checks the current time stamp with the time held in the variable, and if the difference is 10mins or over then displays login form again.
The problem I've got is that I'm not sure if this is the best way to acheive this? Will this slow my application down?
Your help and advice is needed.
Cheers
Simon
My application has a main form called frmMain and uses MDI forms within the main form. The way I was thinking of doing this was adding a onclick method to the frmMain that records a time stamp of every click, and holds within a variable. Then add a timer to the frmMain that every 2mins it checks the current time stamp with the time held in the variable, and if the difference is 10mins or over then displays login form again.
The problem I've got is that I'm not sure if this is the best way to acheive this? Will this slow my application down?
Your help and advice is needed.
Cheers
Simon