Detecting, counting open web browser windows

  • Thread starter Thread starter Lloyd Sheen
  • Start date Start date
L

Lloyd Sheen

I am using the WebBrowser control in an application to "screen scrape"
links. The user puts in a URL and the app will then get all links
conforming to a certain pattern. This works well.

Now there are a set of buttons to activate the links "provided" and cause a
download of files thru the browser control. This works well as the IE
dialog to "Open/Save" the file happens and the user can controls this.

Now the problem. If the app is closed while files are downloading then the
active downloads are killed. Is there any way that I can monitor the
download windows and when all downloads are complete then allow, without a
user prompt, the application to end.

If I could monitor at least the number of open windows in the app that
should do it?

Any ideas,
Thanks
Lloyd Sheen
 
Back
Top