VERSION 5.00 Begin VB.Form Form1 Caption = "Count Timer" ClientHeight = 5055 ClientLeft = 60 ClientTop = 450 ClientWidth = 6435 LinkTopic = "Form1" ScaleHeight = 5055 ScaleWidth = 6435 StartUpPosition = 3 'Windows Default Begin VB.CommandButton Command2 Caption = "Restart" Height = 495 Left = 3240 TabIndex = 3 Top = 2880 Width = 1455 End Begin VB.Timer Timer1 Enabled = 0 'False Interval = 50 Left = 480 Top = 3840 End Begin VB.CommandButton Command1 Caption = "Start" Height = 495 Left = 1680 TabIndex = 2 Top = 2880 Width = 1455 End Begin VB.Label Label2 AutoSize = -1 'True Caption = "2:00:00" BeginProperty Font Name = "Tahoma" Size = 20.25 Charset = 178 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 495 Left = 2400 TabIndex = 1 Top = 2040 Width = 1425 End Begin VB.Label Label1 Caption = "Count Timer" BeginProperty Font Name = "Tahoma" Size = 36 Charset = 178 Weight = 400 Underline = 0 'False Italic = -1 'True Strikethrough = 0 'False EndProperty Height = 975 Left = 1080 TabIndex = 0 Top = 240 Width = 4215 End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Dim times, min, sec, milesecond As Long Private Sub Command1_Click() If Timer1.Enabled = False Then Timer1.Enabled = True Command1.Caption = "Stop" Else Timer1.Enabled = False Command1.Caption = "Start" End If End Sub Private Sub Command2_Click() times = 120000 min = times \ 60000 timesmine = times Mod 60000 sec = timesmine \ 1000 milesencond = timesmine Mod 1000 Label2.Caption = min & ":" & sec & ":" & milesencond End Sub Private Sub Form_Load() times = 120000 min = times \ 60000 timesmine = times Mod 60000 sec = timesmine \ 1000 milesencond = timesmine Mod 1000 Label2.Caption = min & ":" & sec & ":" & milesencond End Sub Private Sub Timer1_Timer() times = times - 50 min = times \ 60000 timesmine = times Mod 60000 sec = timesmine \ 1000 milesencond = timesmine Mod 1000 Label2.Caption = min & ":" & sec & ":" & (milesencond \ 10) End Sub