Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

VS 2010 Wait for a page to load

$
0
0
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.
Quote:

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?

Viewing all articles
Browse latest Browse all 27348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>