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