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:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If My.Settings.history Is Nothing Then My.Settings.history = New Specialized.StringCollection My.Settings.history.Add("http://www.google.co.uk/search?hl=en&q=stringcollection+vb.net&btnG=Google+Search&meta=" & "," & "google search 'stringcollection'") My.Settings.history.Add("http://www.devasp.net/net/articles/display/233.html" & "," & "working with stringcollection") My.Settings.history.Add("http://www.dotnet247.com/247reference/System/Collections/Specialized/StringCollection.aspx" & "," & "System.Collections.Specialized.StringCollection Class") My.Settings.Save() End If For Each history As String In My.Settings.history Dim strArray() As String = history.Split(",") ListBox1.Items.Add(strArray(1)) Next End Sub




Reply With Quote