在我的Web浏览器控件中打开一个链接,而不是在IE中 [英] Opening a link in my webbrowser control instead in IE

查看:136
本文介绍了在我的Web浏览器控件中打开一个链接,而不是在IE中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Internet Explorer中打开PDF文件的软件,但是我想在自己的.Net应用程序中的Webbrowser控件中打开这些文件.
所有提到的PDF文件都存储在存档服务器中,并且都可以通过URL打开.如何防止在IE中打开文档并通过集成的Webbrowser控件捕获链接以打开它?

I have a software that is opening PDF files in internet explorer, but I want to open these documents in my own .Net application in a webbrowser control instead.
All of the mentioned PDF files are stored in an archive server and all of them can be opened by a URL. How can I prevent opening the documents in IE and catch the link to open it via the integrated webbrowser control?

推荐答案

使用WebBrowser控件的Navigate方法打开PDF文件.
请参阅下面的链接,
http://social.msdn.microsoft.com /forums/en-US/vbgeneral/thread/c165c82d-ac79-477e-abab-3efd330d149f/ [ http://www.vb-helper.com/howto_net_open_pdf_browser.html [
Use the WebBrowser control''s Navigate method to open the PDF file.
Refer links below,
http://social.msdn.microsoft.com/forums/en-US/vbgeneral/thread/c165c82d-ac79-477e-abab-3efd330d149f/[^]
http://www.vb-helper.com/howto_net_open_pdf_browser.html[^]


这篇关于在我的Web浏览器控件中打开一个链接,而不是在IE中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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