Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Interation Not Working
#1
I'm using a DO interation to loop a function I'm using to test for internet connectivity. The code is working fine, except that when one of the tests is satisfied the loop stops. I want this to continue in the background while the program is running. How can I get this to work?

Here's the code:
Code:
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
//Kismet


Messages In This Thread
[SOLVED] Interation Not Working - by kismetgerald - 01-18-2012, 01:08 PM
Re: Interation Not Working - by xolara - 01-19-2012, 01:15 PM
Re: Interation Not Working - by kismetgerald - 01-19-2012, 02:46 PM
Re: Interation Not Working - by kismetgerald - 01-19-2012, 05:29 PM
Re: Interation Not Working - by kismetgerald - 01-19-2012, 07:01 PM
Re: Interation Not Working - by kismetgerald - 01-20-2012, 04:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  DataBase - Login - Not Working Murcs 4 16,173 07-02-2011, 09:46 AM
Last Post: brandonio21
  Working with Regex xolara 2 11,050 02-24-2011, 05:38 PM
Last Post: xolara

Forum Jump:


Users browsing this thread: 1 Guest(s)