Document_Completed

Posts 13 of 3 · Page 1 of 1
Document_Completed
Can i request for a tutorial for document_completed for webbroswer.
i am still having trouble trying to check if the page is loaded or not.
can you see the page, or do you mean you want to the code to read if the page loaded


Moved to tutorial request section

You can use a Timer that checks readystate, isbusy, or use DocumentComplete(), I already expressed the two most common ways, but I take it those didn't work for you.

Code:
                If WebBrowser1.IsBusy then 
                        'do nothing
                Else
                 'Your code here
                End If
actual use:

Code:
If WebBrowser1.IsBusy Then
            'do nothing 
        Else
            WebBrowser1.Document.GetElementById("DataPanel1_TitleLink").InvokeMember("click")
            System.Threading.Thread.Sleep(1000)
            WebBrowser1.Document.GetElementById("forum__ctl0_edit").InnerText = "This Works"
        End If
I tested 5 times, worked every time.

Hope this helps you
Posts 13 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?