Exemplo n.º 1
0
 protected void Browser_NavigateComplete2(object sender, NavigateComplete2EventArgs e)
 {
     if (NavigateComplete2 != null)
     {
         NavigateComplete2(sender, e);
     }
 }
Exemplo n.º 2
0
 public void NavigateComplete2(object pDisp, ref object URL)
 {
     try
     {
         Delegate handler = this.GetHandler(WebBrowserEvent.NavigateComplete2);
         if (handler != null)
         {
             NavigateComplete2EventArgs e = new NavigateComplete2EventArgs();
             e._pDisp = pDisp;
             e.URL    = URL;
             this.Raise(handler, e);
             URL = e.URL;
         }
         handler = this.GetHandler(WebBrowserEvent.LegacyBrowserExtendedWebBrowserNavigated);
         if (handler != null)
         {
             WebBrowserNavigatedEventArgs args2 = new WebBrowserNavigatedEventArgs(new Uri(URL.ToString()));
             this.Raise(handler, args2);
             URL = args2.Url.ToString();
         }
     }
     catch (Exception ex) { Trace.WriteLine("NavigateComplete2 exception: " + ex.Message + "\r\n" + ex.StackTrace); }
 }