Ejemplo n.º 1
0
            public void NewWindow3(ref object ppDisp, ref bool Cancel, uint dwFlags, string bstrUrlContext, string bstrUrl)
            {
                ExWebBrowserNewWindow3EventArgs args = new ExWebBrowserNewWindow3EventArgs(ppDisp, bstrUrl, bstrUrlContext);

                _Browser.OnNewWindow3(args);
                Cancel = args.Cancel;
                ppDisp = args.ActiveXInstance;
            }
Ejemplo n.º 2
0
        /// <summary>
        /// Raises the <see cref="StartNewWindow"/> event
        /// </summary>
        /// <exception cref="ArgumentNullException">Thrown when BrowserExtendedNavigatingEventArgs is null</exception>
        protected void OnNewWindow3(ExWebBrowserNewWindow3EventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("e");
            }

            NewWindow3?.Invoke(this, e);
        }