Hi to all,

im creating a webbrowser, with a favorites function using a listbox and a bindingsource and this is how i did it :

with help of this forum i created a sort of custom object, ill post it here :

Vb .net Code:
  1. Public Class Favorites
  2.     Private _title As String
  3.     Private _url As String
  4.     Public Property Title() As String
  5.         Get
  6.             Return Me._title
  7.         End Get
  8.         Set(ByVal value As String)
  9.             Me._title = value
  10.         End Set
  11.     End Property
  12.     Public Property Url() As String
  13.         Get
  14.             Return Me._url
  15.  
  16.         End Get
  17.         Set(ByVal value As String)
  18.             Me._url = value
  19.         End Set
  20.     End Property
  21.     Public Sub New(ByVal title As String, ByVal url As String)
  22.         Me._title = title
  23.         Me._url = url
  24.     End Sub
  25.  
  26. End Class

and the code i use to add new items to the listbox is this :
add new item
Vb .net Code:
  1. Dim N As Integer
  2.         N = Favs.FindStringExact(Applicationhelper _
  3.         .CurrentBrowser.DocumentTitle)
  4.         If (N = -1) Then
  5.             Me.Listoffavorites.Add(New Favorites(Applicationhelper _
  6.                                       .CurrentBrowser.DocumentTitle, Applicationhelper _
  7.                                       .CurrentBrowser.Url.ToString))
  8.         End If

set the data to the listbox
Vb .net Code:
  1. Dim Listoffavorites As New System.ComponentModel.BindingList(Of Favorites)
  2.  
  3.     Me.BindingSource1.DataSource = Me.Listoffavorites
  4.         Me.Favs.DisplayMember = "Title"
  5.         Me.Favs.ValueMember = "Url"
  6.         Me.Favs.DataSource = Me.BindingSource1

well, now that i described what i have done ill tell u what i want to do
i want to save those items in a textbox or in anyway, can anyone help me ?
thanks