title: updating listbox from datasource in visual basic
body: <p>I have a listbox in my form that automatically fills the information from the datasource. I then open a second form to add/remove people from the dataset. when I save and close it, the update is done in the dataset itself but not on the listbox. I added in a button to try to refresh it and I haven't been having any luck.. here is an example of the things ive tried.</p>
  
  <pre><code>       Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
      ListBox1.DataSource = Nothing
      ListBox1.ValueMember = Nothing
      'ClientInfoTableAdapter.Update(DaycareDataSet2)
      'ListBox1.DataBindings.Clear()
      'ListBox1.Items.Clear()
      '' ClientInfoTableAdapter.Fill(DaycareDataSet2.ClientInfo)
      ListBox1.DataSource = DaycareDataSet2.ClientInfo
      ListBox1.DisplayMember = "ClientFullName"
      ListBox1.ValueMember = "id"
      'ListBox1.SelectedIndex = ListBox1.Items.Count - 1
      listbox1.update()
  
  
  End Sub      
  </code></pre>