简体   繁体   English

c# WebBrowser 控件在 IE 中打开链接而不是 WebBrowser 本身

[英]c# WebBrowser control opens link in IE rather than the WebBrowser itself

I have a WebBrowser control on my c# form.我的 c# 表单上有一个 WebBrowser 控件。 When I click on a link in the html on the WebBrowser, the link html is displayed in a new IE rather than on the WebBrowser itself.当我在 WebBrowser 上单击 html 中的链接时,链接 html 显示在新的 IE 中,而不是 WebBrowser 本身。 How can I open the link on the WebBrowser itself only?如何仅在 WebBrowser 本身上打开链接?

As per this answer what is the default for WebBrowser and the recommendation is to make a change in the Navigating event .根据这个答案WebBrowser的默认值是什么,建议是在Navigating event中进行更改。 You can check the documentation here您可以在此处查看文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM