Results 1 to 15 of 15

Thread: History memory on WebBrowser

Threaded View

  1. #14
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,422

    Re: History memory on WebBrowser

    heres a demonstration. it displays your history (descriptions) in the listbox. if you click an item in the listbox it'll display a msgbox withe the full URL + description as saved in my.settings.history

    see attachment

    vb.net Code:
    1. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    2.     If My.Settings.history Is Nothing Then
    3.         My.Settings.history = New Specialized.StringCollection
    4.         My.Settings.history.Add("http://www.google.co.uk/search?hl=en&q=stringcollection+vb.net&btnG=Google+Search&meta=" & "," & "google search 'stringcollection'")
    5.         My.Settings.history.Add("http://www.devasp.net/net/articles/display/233.html" & "," & "working with stringcollection")
    6.         My.Settings.history.Add("http://www.dotnet247.com/247reference/System/Collections/Specialized/StringCollection.aspx" & "," & "System.Collections.Specialized.StringCollection Class")
    7.         My.Settings.Save()
    8.     End If
    9.     For Each history As String In My.Settings.history
    10.         Dim strArray() As String = history.Split(",")
    11.         ListBox1.Items.Add(strArray(1))
    12.     Next
    13. End Sub
    Attached Files Attached Files
    Last edited by .paul.; Jan 15th, 2008 at 06:40 PM.

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