Listen to Internet Explorer Download Event

I need to write a C # and VS2010 application that can listen to a download event from Internet Explorer and grab the file url to add it to a specific database.

My only problem is how to implement an interface that really captures this event.

What do I need to create or implement such functions?

Searching for functionality as a β€œfree download manager or FDM software”, every time you launch a download in Internet Explorer, the β€œFDM” window appears containing the download URL.

+4
source share
2 answers

You need a helper browser object . These are COM components, so you can develop them using C #, but you need to provide them with COM.

Here is a primer for COM programming in C #.

UPDATE

It seems that the only way you can write a helper browser object is in C ++. Take a look here .

+2
source

You can use something like this:

public class BHO:IObjectWithSite { private WebBrowser webBrowser; public int SetSite(object site){ webBrowser = (WebBrowser)site; webBrowser.DownloadComplete +=new DWebBrowserEvents2_DownloadCompleteEventHandler(webBrowser_DownloadComplete); (...) } 
+1
source

All Articles