如何使用下载器制作网络浏览器 [英] how to make a web browser with downloader

查看:72
本文介绍了如何使用下载器制作网络浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用文件下载器构建Web浏览器,这意味着当我要下载任何内容时,不要打开IE下载器,它会打开我自己的下载器.

how to make a web browser with a file downloader, means that when I want to download any thing don''t open the IE downloader, it opens my own downloader.

推荐答案

在WebBrowser的导航"事件中,

在超链接(e.Url)中检查所需的扩展名.

然后使用
In the Navigating event of your WebBrowser,

Check for the required extension in the hyperlink (e.Url).

Then use
e.Cancel = True

取消默认操作.然后致电您的下载管理器.

to cancel the default action. Then call your download manager.


这篇关于如何使用下载器制作网络浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆