第1个回答 2013-11-08
Private Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long)
sleep(5000) '延时五秒
第2个回答 2017-03-11
Do While ExistProcess("ASLUpdate.exe", wait) And i <= 600
Thread.Sleep(1000) : i += 1
If i >= 550 Then wait = False
Loop本回答被网友采纳
第3个回答 2013-11-08
Sleep(2000);休眠2秒
第4个回答 2013-11-08
让线程休眠一断时间就行了
第5个回答 2013-11-08
Public Sub TimeDelay(ByVal PauseSecond As Single)
' Attribute TimeDelay.VB_Description = "延时"
Dim Star, PauseTime
Star = Timer
PauseTime = PauseSecond
Do While Timer < Star + PauseTime
DoEvents
Loop
End SubPrivate Sub Command1_Click()
TimeDelay (5)
MsgBox "出来了"
End Sub
暂停5秒执行下一条语句