返回

资料杂谈

资料杂谈 vb秒表
加入书架 返回目录 查看书架
Option Explicit 
Dim mTime1 As Date 
Private Sub Command1_Click() 
If Command1.Caption = "开始" Then 
Label2.Caption = "开始时间: " & CStr(Format(Now, "hh:mm:ss AM/pm")) 
Timer2.Enabled = True 
Timer2.Interval = 1000 
mTime1 = "00:00:00" 
Command1.Caption = "结束" 
Label3.Caption = "共用时间: " 
Else 
Timer2.Enabled = False 
Timer2.Interval = 0 
Command1.Caption = "开始" 
Label3.Caption = "共用时间: " & CStr(mTime1) 
End If 

End Sub 

Private Sub Form_L) 
Command1.Caption = "开始" 
Timer1.Enabled = True 
Timer1.Interval = 1000 
Timer2.Enabled = False 
End Sub 

Private Sub Timer1_Timer() 
Label1.Caption = "当前时间: " & CStr(Format(Now, "hh:mm:ss AM/pm")) 
End Sub 

Private Sub Timer2_Timer() 
mTime1 = TimeValue(mTime1) + TimeValue("00:00:01") 
End Sub screen.width*0.35) this.width=screen.width*0.40
    
返回目录

若图片章节不正常,请点击报错后刷新页面(支持最新20章报错)

若章节正常,请不要点击报错,否则会造成网站打不开

来源4:http://b.faloo.com/p/123267/7.html

切换来源-当前为feilu