Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

How to intercept Download event

$
0
0

In my form i added a webbrowser.

It uses IE to download files.

I want to execute some other codes when webbrowser decides to download.

I also want to prevent IE from opening.

So i created an event for Filedownload and in the event i added some codes.

But whenever a page was loaded the event occured. And also when i clicked on a download link, IE opened.

Is there any way to achieve this? Whether i will be able to download is not a problem.

I only want to stop IE from opening and to execute my codes.

Some help please.

 


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>