コード例 #1
0
 protected void Browser_TitleChange(object sender, TitleChangeEventArgs e)
 {
     if (TitleChange != null)
     {
         TitleChange(sender, e);
     }
 }
コード例 #2
0
 public void TitleChange(string Text)
 {
     try
     {
         Delegate handler = this.GetHandler(WebBrowserEvent.TitleChange);
         if (handler != null)
         {
             TitleChangeEventArgs e = new TitleChangeEventArgs();
             e._Text = Text;
             this.Raise(handler, e);
         }
     }
     catch (Exception ex) { Trace.WriteLine("TitleChange exception: " + ex.Message + "\r\n" + ex.StackTrace); }
 }