且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将代码从axWebBrowser转换为WebBrowser c#

更新时间:2023-02-07 22:59:22

up


解决方案在哪里?


What is the corresponding code in the browser axWebBrowser The old version(1.1)

private void axWebBrowser1_NewWindow3(object sender, AxSHDocVw.DWebBrowserEvents2_NewWindow3Event e)
{         
string sa1 = e.bstrUrl.Tostring();                  
e.cancel = true;               
}

Now I want the same Code and event in the modern version WebBrowser Modern version


up

Where's the solution?