vb 中如何在达到某个条件时激活某个过程过程
4个回答
展开全部
if x = 50 then
timer1.enable = true
else
timer1.enable = false
end if
timer1.enable = true
else
timer1.enable = false
end if
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Command1_Click()
Dim x As Integer
If x = 50 Then Timer1.Enabled = True
End Sub
Private Sub Form_Load()
Timer1.Enabled = False
Timer1.Interval = 10
End Sub
Dim x As Integer
If x = 50 Then Timer1.Enabled = True
End Sub
Private Sub Form_Load()
Timer1.Enabled = False
Timer1.Interval = 10
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Dim x As Integer
Private Sub Form_Load()
Timer1.Enabled = False
Timer1.Interval = 1000
Timer2.Interval = 1000
End Sub
Private Sub Timer1_Timer()
Me.Caption = "我已被激活了"
Timer2.Enabled = False
End Sub
Private Sub Timer2_Timer()
x = x + 1
If x = 50 Then Timer1.Enabled = True
End Sub
Private Sub Form_Load()
Timer1.Enabled = False
Timer1.Interval = 1000
Timer2.Interval = 1000
End Sub
Private Sub Timer1_Timer()
Me.Caption = "我已被激活了"
Timer2.Enabled = False
End Sub
Private Sub Timer2_Timer()
x = x + 1
If x = 50 Then Timer1.Enabled = True
End Sub
追问
非常感谢
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询