Ok, I am trying to have a application that will fill out web forms and I need the browser to wait until a page loads before entering any information on the site.
Private Sub WaitForPageLoad()
AddHandler WebBrowser1.DocumentCompleted, New WebBrowserDocumentCompletedEventHandler(AddressOf swag)
Exit Sub
End Sub
Private Sub swag()
MsgBox("DONE")
Exit Sub
End Sub
That is the code I am using to make the browser wait, BUT! This opens around 5-10 msgboxes, which means it is checking multiple times. I only want it to check once. Any help on this?
Quote:
Private Sub WaitForPageLoad()
AddHandler WebBrowser1.DocumentCompleted, New WebBrowserDocumentCompletedEventHandler(AddressOf swag)
Exit Sub
End Sub
Private Sub swag()
MsgBox("DONE")
Exit Sub
End Sub