示例#1
0
 private void webKitBrowser1_FaviconAvaiable(object sender, WebKit.FaviconAvailableEventArgs e)
 {
     if (e.Favicon != null)
     {
         fav.Visible = true;
         fav.Image   = e.Favicon.ToBitmap();
     }
     else
     {
         fav.Visible = false;
     }
 }
 void wb_FaviconAvaiable(object sender, FaviconAvailableEventArgs e)
 {
     ((Form)((WebKitBrowser)sender).Parent).Icon = e.Favicon;
 }