Open link in new TAB (WebBrowser Control)

前端 未结 6 1046
遥遥无期
遥遥无期 2020-11-27 18:56

Does anybody know how to click on a link in the WebBrowser control in a WinForms application and then have that link open in a new tab inside my TabControl?

I\'ve be

6条回答
  •  广开言路
    2020-11-27 19:03

    There is no tabbing in the web browser control, therefor you need to handle the tabs yourself. Add a tab control above the web browser control and create new web browser controls when new tabs are being opened. Catch and cancel when the user opens new windows and open new tabs instead.

提交回复
热议问题