Hey guys , im creating a messenger via VB.NET Using eBuddy, I need to have a status and in the status i need it to update every second. The status is in label3 and i tried to put this code on form load but it doesnt change constantly only once.

WebBrowser1.Navigate("http://m.ebuddy.com/login.php?nw=MSN")
        If WebBrowser1.DocumentText.Contains("Please fill in the correct username and password.") Then
            Label3.Text = "STATUS: Please Enter Correct Details OR Failed Loging In"

        Else
            Label3.Text = "STATUS: Please Login"
        End If
        If WebBrowser1.DocumentText.Contains("Loading your buddy list") Then
            Label3.Text = "STATUS: Logging In"
        End If

Recommended Answers

All 3 Replies

Hi,

Add a Timer to your form and set the Interval to 1000 (1 second).
Place your code (or a Call to it) in the timer Tick event.
Call myTimerName.Start() in the form Load event and myTimerName.Stop() in the FormClosing event.

HTH,

Chris.

ah man i tried it and it didnt work . Thanks for the help anyways. Anyone else have a suggestion?

Wait , I made it work using the timer tick event thanks alot ,
Marked as Solved

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.