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