VB.NET... Can't figure how to get CEFsharp to work :(

2,104 views
Skip to first unread message

Busting Buster

unread,
Jul 5, 2015, 12:59:12 PM7/5/15
to cefs...@googlegroups.com
Alright, I downloaded the source & the cefbuilds... Compiled cefsharp.winforms.example worked great... 

Now i made a new vb.net winforms project and added reference to cefsharp.dll, cefsharp.winforms.dll and copied all files from cefsharp.winforms.example's debug folder to this project's debug folder. And so started debugging... Hooray no errors but the browser just shows blank white space... no site is being loaded.

Here's the code i'm using.. Please tell me whats wrong : 

Imports CefSharp
Imports CefSharp.WinForms
Public Class Form1
    Public Sub New()

        ' This call is required by the designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        Dim browser As New ChromiumWebBrowser("about:blank")
        browser.Dock = DockStyle.Fill
        ToolStripContainer1.ContentPanel.Controls.Add(browser)
        browser.Load("http://google.com")
        If browser.IsLoading Then
            Label1.Text = "yes, wait"
        End If
    End Sub
End Class


And one more thing its consuming about 50mb of ram (for just displaying a white page..)

Thank you.

Alex Maitland

unread,
Jul 5, 2015, 4:07:29 PM7/5/15
to cefs...@googlegroups.com
The `MinimalExample` is an excellent place to start see https://github.com/cefsharp/CefSharp.MinimalExample

It demonstrates using the `Nuget` packages (which is the recommended method of consuming `CefSharp`)

https://github.com/cefsharp/CefSharp#nuget-packages

Try replicating the code at https://github.com/cefsharp/CefSharp.MinimalExample/blob/master/CefSharp.MinimalExample.WinForms/BrowserForm.cs#L23

(Change `about:blank` to `http://google.com`)

Busting Buster

unread,
Jul 6, 2015, 1:32:27 AM7/6/15
to cefs...@googlegroups.com
Thanks for the reply... But thats how i did it.

Alex Maitland

unread,
Jul 6, 2015, 2:43:21 AM7/6/15
to cefs...@googlegroups.com

That's a little vague. How you did what exactly?

--
You received this message because you are subscribed to the Google Groups "CefSharp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cefsharp+u...@googlegroups.com.
To post to this group, send email to cefs...@googlegroups.com.
Visit this group at http://groups.google.com/group/cefsharp.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages