the WebBrowser1_DocumentCompleted event only fires once

D

Dougsd1r

I have a application which has a form with a webbrowser control on it
(this webbrowser control is initially hidden)

Using the WebBrowser1_DocumentCompleted action, i parse what's on the
page and it if is not what is expected i flag up an error then close
the form
if it is what is expected then I show the webbrowser control to reveal
the text
The url is just a webpage which contains plain text.

Once this form is closed then the next time the form is loaded (using
form2.ShowDialog() )the WebBrowser1_DocumentCompleted action is not
fired and hence does not run through my parsing code.

I use Me.Close() to close the form and i thought it might be because
the form was not being closed fully. Is there a way round this?
I tried using WebBrowser1.Refresh in the load event of the form but
this didnt seem to work either
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top