0 Replies - 577 Views - Last Post: 10 March 2013 - 05:27 AM Rate Topic: -----

#1 xxxpetko  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 10-December 12

Webbrowser multithreading

Posted 10 March 2013 - 05:27 AM

I created a tabbed webbrowser in VB, is possible to each tab in new thread ?
code to create tab:
Private Sub Tab()
        TabControl1.TabPages.Add(i)
        TabControl1.SelectTab(i)
        i = i + 1
        Dim Browse As New WebBrowser
        Browse.Name = "WebBrowser1"
        Browse.Dock = DockStyle.Fill
        Browse.IsWebBrowserContextMenuEnabled = False
        Browse.ScriptErrorsSuppressed = True
        If My.Settings.dcontext = "yes" Then
            Browse.ContextMenuStrip = ContextMenuStrip1
        End If
        AddHandler Browse.Navigated, AddressOf Browse_done
        AddHandler Browse.NewWindow, AddressOf Browse_nwin
        AddHandler Browse.PreviewKeyDown, AddressOf Browse_key
        TabControl1.SelectedTab.Controls.Add(Browse)
        Browse.Navigate(My.Settings.Home.ToString)
    End Sub


Problem is, that some objects have to be shared between threads...

Is This A Good Question/Topic? 0
  • +

Page 1 of 1