7,763
社区成员
发帖
与我相关
我的任务
分享
Private Sub Command1_Click()
Timer2.Enabled = True
End Sub
Private Sub Form_Load()
Timer3.Interval = 1000
Timer3.Enabled = False
End Sub
Private Sub Timer3_Timer() '闪灯程序
Static sum As Long
sum = sum + 1
'在这里如何写一个延时函数,最好不是sleep,怕占线程
If sum Mod 10 = 0 Then
sum = 0
Shape1.Visible = True
Timer2.Enabled = False
Timer3.Enabled = False
End If
End Sub
Private Sub Timer2_Timer() '闪灯程序
Shape1.Visible = Not Shape1.Visible
'在这里如何写一个延时函数,最好不是sleep,怕占线程
Timer3.Enabled = True
End Sub
Private Sub Form_Load()
Timer3.Interval = 1000
Timer3.Enabled = False
End Sub
Private Sub Timer3_Timer() '闪灯程序
Static sum As Long
sum = sum + 1
'在这里如何写一个延时函数,最好不是sleep,怕占线程
If sum Mod 600 = 0 Then
sum = 0
ima1.Item(timepp - 1).Visible = True
Timer2.Enabled = False
Timer3.Enabled = False
End If
End Sub
Private Sub Timer2_Timer() '闪灯程序
ima1.Item(timepp - 1).Visible = Not ima1.Item(timepp - 1).Visible
'在这里如何写一个延时函数,最好不是sleep,怕占线程
Timer3.Enabled = True
End Sub
Private Sub Form_Load()
Timer2.Interval = 1000
End Sub
Private Sub Timer2_Timer() '闪灯程序
Static sum As Long
sum = sum + 1
ima1.Item(timepp - 1).Visible = Not ima1.Item(timepp - 1).Visible
'在这里如何写一个延时函数,最好不是sleep,怕占线程
If sum Mod 600 = 0 Then
ima1.Item(timepp - 1).Visible = True
sum = 0
End If
End Sub
Private Sub Form_Load()
Timer2.Interval = 1000
End Sub
Private Sub Timer2_Timer() '闪灯程序
Static sum As Long
sum = sum + 1
ima1.Item(timepp - 1).Visible = Not ima1.Item(timepp - 1).Visible
'在这里如何写一个延时函数,最好不是sleep,怕占线程
If sum Mod 60 = 0 Then
ima1.Item(timepp - 1).Visible = True
sum = 0
End If
End Sub
Private Sub Form_Load()
Timer2.Interval = 1000
End Sub
Private Sub Timer2_Timer() '闪灯程序
Static sum As Long
sum = sum + 1
ima1.Item(timepp - 1).Visible = Not ima1.Item(timepp - 1).Visible
'在这里如何写一个延时函数,最好不是sleep,怕占线程
If sum Mod 600 Then
ima1.Item(timepp - 1).Visible = True
sum = 0
End If
End Sub