Looking for a starter version of CefSharp in WinForms for .vb not c# ?

54 views
Skip to first unread message

vmars vernon

unread,
Oct 8, 2020, 3:43:41 PM10/8/20
to CefSharp
Hello & Thanks ;
I am Looking for a starter version of CefSharp in WinForms for .vb .
I see C# example on github but I don't know how to translate C# to .vb .
Some conversions from here work: https://converter.telerik.com/
but lots don't :
I have this much but need about "Invoke" and other examples .
Thanks for your Help...

Imports cef
Imports CefSharp
Imports CefSharp.WinForms
Imports System.Windows.Forms

Public Class Form1
    Private WithEvents browser As ChromiumWebBrowser
    Public Sub New()
        ' This call is required by the designer.
        InitializeComponent()
        ' Add any initialization after the InitializeComponent() call.
    End Sub

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Dim setting As New CefSettings
        '        setting.RemoteDebuggingPort = 8088
        CefSharp.Cef.Initialize(setting)
        browser = New ChromiumWebBrowser("https://www.google.com/") With {
                .Dock = DockStyle.Fill
                }
        Panel1.Controls.Add(browser)
        '        browser.Load(TextBox1.Text)
        '        browser.Load("duckduckgo.com")

    End Sub
     Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
        browser.Load(TextBox1.Text)
    End Sub

End Class

B. Tkatch

unread,
Oct 8, 2020, 3:47:35 PM10/8/20
to cefs...@googlegroups.com
I posted very simple examples in http://reddit.com/r/cefshsrp.



--
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 view this discussion on the web visit https://groups.google.com/d/msgid/cefsharp/750e8a9b-d54a-48ac-9b9d-85b71aeda1bfn%40googlegroups.com.

vmars vernon

unread,
Oct 8, 2020, 6:06:01 PM10/8/20
to CefSharp
Pls , Where on reddit " Thanks

B. Tkatch

unread,
Oct 8, 2020, 6:11:23 PM10/8/20
to cefs...@googlegroups.com
https://www.reddit.com/r/CefSharp/
>>> <https://groups.google.com/d/msgid/cefsharp/750e8a9b-d54a-48ac-9b9d-85b71aeda1bfn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/cefsharp/0eca5f96-0c68-40f1-b001-e7760210583bn%40googlegroups.com.
>

vmars vernon

unread,
Oct 9, 2020, 5:43:07 PM10/9/20
to CefSharp
That's not enough info to build a vb version of CefSharp .

B. Tkatch

unread,
Oct 9, 2020, 5:49:59 PM10/9/20
to cefs...@googlegroups.com
It matters what you want. There is a bare bones example of how to build and run a vb application running cefsharp.i tested or multiple times. If you want something more complex, there may be no example there. I only pasted what I was working on in case it would help others.

vmars vernon

unread,
Oct 10, 2020, 5:14:26 PM10/10/20
to CefSharp
[  There is a bare bones example of how to build and run a vb application running cefsharp.   ] 
Yes please , where is that ? 
Thanks

B. Tkatch

unread,
Oct 11, 2020, 9:00:36 PM10/11/20
to cefs...@googlegroups.com
It's the first post in the group, titled, "Bare-bones CefSharp example
in VB". https://www.reddit.com/r/CefSharp/comments/hf3vaj/barebones_cefsharp_example_in_vb/

On 10/10/20, vmars vernon <vmar...@live.com> wrote:
> [ There is a bare bones example of how to build and run a vb application
>>> <https://groups.google.com/d/msgid/cefsharp/eded3eac-a38b-45ee-878e-23eea904f128n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/cefsharp/c2102472-b4e2-488c-8850-e20555819518n%40googlegroups.com.
>
Reply all
Reply to author
Forward
0 new messages