可能重复:
Vb: how to pause a loop for a certain amount of time and then continue?
我正在尝试制作Youtube View黑客。由于YouTube在观看视频5秒后录制视图,因此我想暂停刷新循环。到目前为止:
Dim d As Integer
For d = 0 To 50
WebBrowser1.Navigate("Youtube.com")
//pause here
Next d
非常感谢。
答案 0 :(得分:0)
Dim d As Integer
For d = 0 To 50
WebBrowser1.Navigate("Youtube.com") 'Navigate to Youtube.
System.Threading.Thread.Sleep(5000) '"Pause" for 5 seconds.
Next d
您可能还想查看MSDN上的文档。