Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

WebBrowser Control - "Pause" problem

Posted on 2003-02-25
3
Medium Priority
?
288 Views
Last Modified: 2008-02-01
Hi,

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
  DoEvents
Loop

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.


Cheers all.
0
Comment
Question by:englishman
3 Comments
 
LVL 3

Expert Comment

by:Da_Weasel
ID: 8021585
The FileDownload event won't fire while you are in that loop?
0
 
LVL 2

Author Comment

by:englishman
ID: 8144555
Hi DW,
It was resolved when I realised that an error ("Secure and NonSecure Items"), was being invoked by the web address, not a 403.
Oh well.

I'm requesting the deletion of this question.
Cheers.
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8144571
PAQ'd and all 75 points refunded.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question