Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27159

VS 2010 Awesomium Web Core Favicon

$
0
0
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.

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

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.

Viewing all articles
Browse latest Browse all 27159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>