PutterPlace
Active member
- Joined
- Feb 18, 2008
- Messages
- 37
- Programming Experience
- 1-3
I am working on a project that requires me to submit a form after it's been filled out. If the form is submitted correctly, then my WebBrowser control will load a page that immediately prompts me to download a certain file (eg. Failure.exe). After the page has completed loading, the WebBrowser is navigated to "about:blank", and a MsgBox("Success") is shown.
I've managed to work out the code to fill out the form and submit it correctly. My only problem now is that to complete this proect, I need to disable the download prompt somehow. I think the download is started with a meta refresh with a refresh rate set to "0", so the download starts before the page is completely loaded. Normally, I would start navigating to "about:blank" using the DocumentCompleted method before the download has a chance to start. However, since the download starts before the page loads, I can't do that.
Can anybody give me some kind of suggestion that can stop this download before it happens? Any help would be greatly appreciated.
I've managed to work out the code to fill out the form and submit it correctly. My only problem now is that to complete this proect, I need to disable the download prompt somehow. I think the download is started with a meta refresh with a refresh rate set to "0", so the download starts before the page is completely loaded. Normally, I would start navigating to "about:blank" using the DocumentCompleted method before the download has a chance to start. However, since the download starts before the page loads, I can't do that.
Can anybody give me some kind of suggestion that can stop this download before it happens? Any help would be greatly appreciated.