Ejemplo n.º 1
0
 /// <summary>
 ///  Raises the NewWindow3 event.
 /// </summary>
 protected virtual void OnNewWindow3(WebBrowserNewWindowEventArgs e)
 {
     if (this.NewWindow3 != null)
     {
         this.NewWindow3(this, e);
     }
 }
Ejemplo n.º 2
0
            /// <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;
            }