JuggaloBrotha said:add a timer control to the form and set it's interval property to 1000
have a form level integer
then in the tick event just add one to that integer (it'll be incremented once a second) then check to see if it's >= 3600 (an hour) if it is display the info you want to show the user, if not then have it do nothing till the next time the tick event fires
if you'd like code showing this concept feel free to ask myself or kulrom and we'll glady provide a working example
{...}
If mintSeconds >= 3600 Then
mintSeconds = 0
MessageBox.Show("It's been an hour", "An hour has passed", MessageBoxButtons.OK, MessageBoxIcon.Information)
' mintSeconds = 0 .... move this to the above
EndIf
kulrom said:Great, only you need to replace line mintSeconds = 0 cause if user doesn't satisfy dialogBox it will continue open new dialogs ... so your code should look like:
PHP:{...} If mintSeconds >= 3600 Then mintSeconds = 0 MessageBox.Show("It's been an hour", "An hour has passed", MessageBoxButtons.OK, MessageBoxIcon.Information) ' mintSeconds = 0 .... move this to the above EndIf
Anyway good job ... cheers![]()