Link to home
Start Free TrialLog in
Avatar of cmerlo1
cmerlo1

asked on

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...
ASKER CERTIFIED SOLUTION
Avatar of vs1784
vs1784

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cmerlo1
cmerlo1

ASKER

What is the code for doing that?
what code you are using to bind the list box with data?
Avatar of cmerlo1

ASKER

Just figured it out...re-used the code I was using on page load...d'oh!
Ok, thats what i meant.