vb中怎么设置等待时间?
1个回答
展开全部
Declare Function GetTickCount Lib "kernel32" () As Long
Public Shared Sub Pause(ByVal HowLong As Long)
'单位为毫秒
Dim tick As Long
tick = GetTickCount()
Do
Application.DoEvents()
Loop Until tick + HowLong < GetTickCount
End Sub
Public Shared Sub Pause(ByVal HowLong As Long)
'单位为毫秒
Dim tick As Long
tick = GetTickCount()
Do
Application.DoEvents()
Loop Until tick + HowLong < GetTickCount
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询