Results 1 to 2 of 2

Thread: WebBrowser Viewed History.

  1. #1
    New Member
    Join Date
    Aug 12
    Posts
    13

    Unhappy WebBrowser Viewed History.

    Hey,

    So currently I am making a Web Browser to remember the sites I have been in (History). Currently I am using Tabbed Browsing (So it means I don't have a webBrowser until I add a new tab.) Now I have a navigate button with these code:

    Navigate Button:
    CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(ComboBox1.Text)
    ComboBox1.Items.Add(ComboBox1.Text)


    Add New Tab Button:
    Dim Browser As New WebBrowser
    TabControl1.TabPages.Add("New Page")
    TabControl1.SelectTab(int)
    Browser.Name = "Web Browser"
    Browser.Dock = DockStyle.Fill
    TabControl1.SelectedTab.Controls.Add(Browser)
    AddHandler Browser.DocumentCompleted, AddressOf Done
    int = int + 1
    CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).GoHome
    ()

    Now when I navigate it says: Items collection cannot be modified when the DataSource property is set.

    Any has an idea of how to solve this?

    Thanks in advance

    Note: I got the codes from this website: http://shorttext.com/rfvkrvt2cn

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 12
    Posts
    5,555

    Re: WebBrowser Viewed History.

    cannot be modified when the DataSource property is set

    A fairly hefty clue there!

Posting Permissions

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