7,763
社区成员
发帖
与我相关
我的任务
分享
Sub Timer1_timer()
Static HS As Boolean
If Me.Visible Then
If HS = False Then
HS = True
MsgBox "me show"
'Form_Load
End If
Else
If HS Then
HS = False
MsgBox "me hide"
End If
End If
End Sub
Private Sub Form_Load()
Timer1.Enabled = True
Timer1.Interval = 1000
Label1.Caption = "0"
End Sub
Private Sub Timer1_Timer()
Label1.Caption = (Val(Label1.Caption) + 1) Mod 100
End Sub