Hi,
I'm grabbing a favicon from a website and add it to a tab.
Does anyone know how to scale it? Some of the favicons are larger then 16*16, which makes it a big image on the tab.
My code to grab it:
vb.net Code:
For Each element As Gecko.GeckoElement In xGecko.Document.DocumentElement.GetElementsByTagName("link") If element.GetAttribute("rel").ToLower = "shortcut icon" Then result = element.GetAttribute("href") Exit For End If Next Try Dim WebClient As New WebClient Dim MS As New MemoryStream(WebClient.DownloadData(result)) Dim favicon As New Icon(MS) web_tab.SelectedTab.Icon = favicon





Reply With Quote