"bedre sent end aldrig".. :)
Jeg faldt over noget kode på experts-exchange.com..
url:
http://www-tcsn.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20760375.htmlDim sec As Long
Private Sub Form_Load()
Timer1.Interval = 1000
sec = 60 * 5
Label1.Caption = Format$(Fix(sec / 60), "00") & ": " & Format$(sec Mod 60, "00") & " seconds left"
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
sec = sec - 1
Label1.Caption = Format$(Fix(sec / 60), "00") & ": " & Format$(sec Mod 60, "00") & " seconds left"
If sec = 0 Then End
End Sub"...
Jeg faldt over noget kode på experts-exchange.com..
url:
http://www-tcsn.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20760375.htmlDim sec As Long
Private Sub Form_Load()
Timer1.Interval = 1000
sec = 60 * 5
Label1.Caption = Format$(Fix(sec / 60), "00") & ": " & Format$(sec Mod 60, "00") & " seconds left"
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
sec = sec - 1
Label1.Caption = Format$(Fix(sec / 60), "00") & ": " & Format$(sec Mod 60, "00") & " seconds left"
If sec = 0 Then End
End Sub