public void OnNewWindow3(ref object ppDisp, ref bool Cancel, uint dwFlags, string bstrUrlContext, string bstrUrl) { NewWindow3EventArgs args = new NewWindow3EventArgs(ref ppDisp, ref Cancel, bstrUrl, bstrUrlContext); if (null != NewWindow3) { NewWindow3(this, args); } Cancel = args.Cancel; ppDisp = args.PPDisp; }
private void WebBrowNewWindow(object sender, NewWindow3EventArgs e) { MessageBox.Show("new window"); }