Jepe d Hepe
Jepe d Hepe

Reputation: 909

Prevent FileDown in WinForms webbrowser control

i need to block file download in webbrowser control in C#.net.. how can i do it?

Upvotes: 0

Views: 1476

Answers (2)

Darin Dimitrov
Darin Dimitrov

Reputation: 1039130

Could you be more specific as to what you mean by file download? Opening an html web page is also a file download. You could use the Navigating event, inspect the target URL and if you classify it as a file download you could set the Cancel property.

Upvotes: 0

Related Questions