Reputation: 909
i need to block file download in webbrowser control in C#.net.. how can i do it?
Upvotes: 0
Views: 1476
Reputation: 15281
Implementing a Custom Download Manager managed wrapper http://www.codeproject.com/KB/miscctrl/csEXWB.aspx
Upvotes: 1
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