开发者

Prevent FileDown in WinForms webbrowser control

开发者 https://www.devze.com 2022-12-18 14:51 出处:网络
i need to block fi开发者_开发技巧le download in webbrowser control in C#.net.. how can i do it?Implementing a Custom Download Manager

i need to block fi开发者_开发技巧le download in webbrowser control in C#.net.. how can i do it?


Implementing a Custom Download Manager managed wrapper http://www.codeproject.com/KB/miscctrl/csEXWB.aspx


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消