hi,
i am working on a program that locks your computer after a preset time, sort of like the type you would find in an internet cafe etc, but it doesnt work properly.
when its unlocked and a time enterd it passes the time (in minutes to a form that shows your time, the time is placed in a variable (minutevar), another variable (secondsvar) is set to 60 and a timer is run.
The timer counts down in 1000 ms increments and each time its sub is triggerd it subtracts 1 from the second variable (secondsvar) and then updates the display. it then subtracts 1 from the first variable (minutevar) IF secondsvar = 0 then it updates the display.
IF minutevar = 0 then it shows the Lock form and hides its self otherwise it continues.
the first time the timer is run, it works perfectly, the time is set, the timer counts down and it locks the computer when its supposed to, then when i try and unlock it again it unlocks the time is enterd and the timer set BUT the timer has frozen and no longer counts down, i have tried setting a breakpoint on the timer, it works the first time and breaks but the second time it doesnt break, which indicates to me that the timer isnt running.
If Anyone has any ideas on how to fix this problem please let me know, i can provide source code if needed in either text or file form.