我正在使用DO interation來循環我用來測試互聯網連接的功能。代碼工作正常,除了當其中一個測試滿足時,循環停止。我希望這個程序在運行時在後臺繼續。我怎樣才能使這個工作?迭代不按照原樣工作
Private Sub checkInternet()
Dim InetChecker As Boolean
InetChecker = CheckForInternetConnection()
Do While LabelCount.Text <> ""
Thread.Sleep(10)
If InetChecker = True Then
Dim image = My.Resources.greenbar
PictureBox4.Image = image
Else
Thread.Sleep(10)
Dim image = My.Resources.redbar
PictureBox4.Image = image
'NoInetConnError.Show()
End If
Loop
End Sub
您的協助將不勝感激,謝謝。
哇,這就像一個魅力。謝謝。 – 2012-01-20 02:48:07