Best Listbox method?

archer_coal

Well-known member
Joined
Apr 4, 2003
Messages
96
I have several listboxs populated with data from an access database on Form_Load event.
Im using a click event to edit the listbox.selecteditem in a seperate textbox. ie:
You click on an item in the listbox and the textbox is now populated with the selected item text.

I want to be able to update the database using a cmdButton with the new text in the textbox then refresh the listboxs.

Should i be using a listbox.ObjectCollection to store the listbox items? IF so, how do i go about populating the collection from a datareader?

The listbox is not bound to the database at all. The dbconnection is set at runtime if that helps.


:confused:
 
Back
Top