0

I have a WebBrowser control on my c# form. 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. How can I open the link on the WebBrowser itself only?

peter
  • 1,009
  • 3
  • 15
  • 23

1 Answers1

0

As per this answer what is the default for WebBrowser and the recommendation is to make a change in the Navigating event. You can check the documentation here

  • Thanks for your help. I use the all the default settings for the WebBrowser. In the navigating event, if I set the cancel = true, then the link won't be opened at ll. – peter Mar 02 '22 at 22:29
  • I found the issue is related to the web sites. If I browse bbc.com, the link opens in the WebBrowser itself, but the link in https://news.google.com/topstories?hl=en-AU&gl=AU&ceid=AU:en will open in IE. – peter Mar 02 '22 at 23:54