Private Sub Form_Load()
timecount = 60 * 8
End Sub
Private Sub tim_timer()
timecount = timecount - 1
Me.Caption = timecount \ 60 & "分" & timecount Mod 60 & "秒"
If timecount = 60 Then
Beep
End If
If timecount = 0 Then
Beep
tim.Enabled = False
End If
End Sub
private sub tim_timer()
timecount =timecount -1
me.caption=timecount/60 & "分" & timecount mod 60 & "秒"
if timecount=60 then
beep
end if
if timecount=0 then
beep
tim.enabled=false
endif
private sub form_load()
tim.enabled=false
end sub
private sub cmdStart_Click()
ltime=8
tim.enabled=true
end sub
private sub tim_timer()
ltime=ltime-1
if ltime=2 then
'play music last one
endif
if ltime=1 then
'play music end
tim.enabled=false
end if