Ie browser plug-in, click on the link to open a new window within the page jump function beforenavigate2 cannot achieve a url, enter in the web url input box, can jump, function is as follows:
Public void OnBeforeNavigate2 (object pDisp, ref object URL, ref object Flags, ref object TargetFrameName, ref object PostData, ref object Headers, ref bool Cancel) {
The string url=url as a string;
WriteLog (" before "+ url);
If (url. IndexOf (" www.minitiao.com ") & gt;=0) {
URL="http://www.163.com";
(pDisp as WebBrowser). Navigate2 (URL, Flags, TargetFrameName PostData, Headers);
}
}