Listbox Refresh problem

  • Thread starter Thread starter Aaron Bellante
  • Start date Start date
A

Aaron Bellante

I am fairly new to VB so please be gentle. :)

I am teaching myself about web services and I have been messing around
with Amazon.coms services. I am able to run a search and populate a
listbox with the names of books returned from a search. However, if
another search is run the listbox does not show the new results, however
it HAS been repopulated with the new results. As I can select with the
mouse and certain Labels that show price and name change.

Here is the bit of code that popuklates the listbox:

With lstResults
.BeginUpdate()
.DataSource = Nothing
.Items.Clear()
.DataSource = allDetails
.DisplayMember = "ProductName"
.SelectedIndex = 0
.EndUpdate()
End With


Any help will be greatly appreciated.
 
Back
Top