只要简单的数码显示就可以了
显示时、分、秒
ps:怎么定义一个时间变量啊(时分秒型的)----偶是个菜鸟
定义一个标签Label1、一个时钟Timer1 Timer1.Interval=1000
Private Sub Timer1_Timer()
Label1.Caption = Time
End Sub
[此贴子已经被作者于2006-5-27 22:48:47编辑过]
Dim H As Integer, M As Integer, S As Integer
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
If S = 59 Then
S = 0
If M = 59 Then
M = 0
If H = 99 Then
H = 0
Else
H = H + 1
End If
Else
M = M + 1
End If
Else
S = S + 1
End If
Label1.Caption = Format(H, "00") + ":" + Format(M, "00") + ":" + Format(S, "00")
End Sub