Results 1 to 3 of 3

Thread: cefsharp in vb.net

  1. #1

    Thread Starter
    Frenzied Member jdc20181's Avatar
    Join Date
    Oct 2015
    Location
    Indiana
    Posts
    1,168

    cefsharp in vb.net

    Thanks to a little reading I have decided to go ahead and use cefsharp.

    My issue is getting it to work with tabs in vb.net, I can't seem to get it.

    Normally to do functions like Going forward, back and refreshing, as well as navigating like this:

    Code:
     CType(Tabcontrol1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(ToolStripTextBox1.Text)
    Cefsharp is a big project, but there seems to be nothing for vb.net, a like other webbrowser controls other than IE that deals with tabs.

    I figured out how to navigate finally, but it is giving me grief.

    If you can help me, I appreciate it, Don't just give me a link to cefsharp respo, I have been staring at c# code for hours and don't understand it entirely, and their docs aren't great.

    Thanks
    jdc

  2. #2

    Thread Starter
    Frenzied Member jdc20181's Avatar
    Join Date
    Oct 2015
    Location
    Indiana
    Posts
    1,168

    Re: cefsharp in vb.net

    So I found a tutorial it uses c# something or another but its in vb.net.... I modified it to add a tab, but as you will see in my screenshot that happens instead of the expected results.
    Name:  Screenshot (144).jpg
Views: 3855
Size:  26.7 KB

    The code:

    Code:
    Private WithEvents brws As ChromiumWebBrowser
        Public Sub Newtab()
            InitializeComponent()
            Dim tab As New TabPage
            Dim settings As New CefSettings()
            Me.Tabcontrol1.TabPages.Add(tab)
            Me.Tabcontrol1.SelectedTab = tab
    
            CefSharp.Cef.Initialize(settings)
    
     tab.Controls.Add(brws)
    
            brws = New ChromiumWebBrowser("http://thechriskent.com") With {
                .Dock = DockStyle.Fill
            }
    
       
    
        End Sub

    I don't understand?

    I mean, I have it on X86 as any cpu apparently doesn't work with cefsharp....That may be the issue idk

  3. #3

    Thread Starter
    Frenzied Member jdc20181's Avatar
    Join Date
    Oct 2015
    Location
    Indiana
    Posts
    1,168

    Re: cefsharp in vb.net

    Update:

    I think it is possibly the tab control, because I tested it without the tabcontrol, and it works fine (A little slow but works)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width