Refresh list box in VB2008

I'm developing an application in VB2008.  I have a list box that displays info from a database table.  The info is bound to the listbox via a table adapter.  The user has the ability to add rows to the database via another form.  I haven't been able to figure out how to get the new data displayed in the list box on the original form after the user submits it...how do I refresh the list box on the form to show the data the user just added?  I've tried 'form1.refresh' with no luck, and 'form1.close' ends the application...
cmerlo1Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
vs1784Connect With a Mentor Commented:
Refill the data adapter with new data, it should work i think.
0
 
cmerlo1Author Commented:
What is the code for doing that?
0
 
vs1784Commented:
what code you are using to bind the list box with data?
0
 
cmerlo1Author Commented:
Just figured it out...re-used the code I was using on page load...d'oh!
0
 
vs1784Commented:
Ok, thats what i meant.
0
All Courses

From novice to tech pro — start learning today.