I have begun development on a web browser using the Awesomium web core, and I tried to use this code to retrieve a favicon. The only problem I had was that "Url" wasn't a member of the Awesomium.Windows.Forms.WebControl , so I have to use something else.
I tried to get access to the Awesomium forums, but I found no way presently to register because it seems to be pretty tight knit. Could someone who has a bit of knowledge of this web core help me with this? I'd be appreciative.
Code:
Private Sub geticon()
Try
Dim webclient As New WebClient
Dim IconUrl As New Uri(WebControl1.Url.ToString)
Dim MemoryStream As New MemoryStream(webclient.DownloadData("http://" & IconUrl.Host & "/favicon.ico"))
Dim webicon As New Icon(MemoryStream)
PictureBox1.Image = webicon.ToBitmap
Catch ex As Exception
End Try
End Sub