/// <summary>
 ///  Raises the NewWindow3 event.
 /// </summary>
 protected virtual void OnNewWindow3(WebBrowserNewWindowEventArgs e)
 {
     if (this.NewWindow3 != null)
     {
         this.NewWindow3(this, e);
     }
 }
            /// <summary>
            /// Raise the NewWindow3 event.
            /// If an instance of WebBrowser2EventHelper is associated with the underlying
            /// ActiveX control, this method will be called When the NewWindow3 event was
            /// fired in the ActiveX control.
            /// </summary>
            public void NewWindow3(ref object ppDisp, ref bool Cancel, uint dwFlags,
                                   string bstrUrlContext, string bstrUrl)
            {
                var e = new WebBrowserNewWindowEventArgs(bstrUrl, Cancel);

                this.parent.OnNewWindow3(e);
                Cancel = e.Cancel;
            }
        private void webBrowser_NewWindow3(object sender, WebBrowserNewWindowEventArgs e)
        {
            e.Cancel = true;

            if (!string.IsNullOrEmpty(e.Url))
            {
                this.webBrowser.NextUrl = e.Url;
                this.webBrowser.Busy = true;
                timer.Enabled = true;
            }
        }
 /// <summary>
 /// Raise the NewWindow3 event.
 /// If an instance of WebBrowser2EventHelper is associated with the underlying
 /// ActiveX control, this method will be called When the NewWindow3 event was
 /// fired in the ActiveX control.
 /// </summary>
 public void NewWindow3(ref object ppDisp, ref bool Cancel, uint dwFlags,
     string bstrUrlContext, string bstrUrl)
 {
     var e = new WebBrowserNewWindowEventArgs(bstrUrl, Cancel);
     this.parent.OnNewWindow3(e);
     Cancel = e.Cancel;
 }
 /// <summary>
 ///  Raises the NewWindow3 event.
 /// </summary>
 protected virtual void OnNewWindow3(WebBrowserNewWindowEventArgs e)
 {
     if (this.NewWindow3 != null)
     {
         this.NewWindow3(this, e);
     }
 }