WebBrowser Control - "Pause" problem
Posted on 2003-02-25
I'm using the webbrowser control to hit a number of addresses defined in the code.
Now, when I get a 403 error (when the page isn't there), the control moves on to try the next address.
When the file is there, the control attempts to download the file and I then capture this FileDownload event and prevent the "Save File as..." dialogue box. I can then, for example, note this address for future reference and move on to the next URL attempt.
The trouble is ...
The webbrowser control doesn't bother waiting for a result before looping through all the addresses.
So I deal with this with:
Do While WebBrowser.ReadyState <> READYSTATE_COMPLETE
But in this case I'm unable to capture the FileDownload event and prevent that "Save File as..." dialogue box.
I'm sure I'm getting my event orders mangled somewhere.
All suggestions more than welcome of course.