I have created an application where the information entered into the database is shown in a list box in vb6. I would like suggestions on how to clear the list box when the user wants to create a new list.
Printable View
I have created an application where the information entered into the database is shown in a list box in vb6. I would like suggestions on how to clear the list box when the user wants to create a new list.
if you list box is called list1 then to clear the list box use:
list1.clear
Hope that helps
Hmmm...
this will only work if the listbox is not bound to a table or query. Bound listboxes do not support the Clear method.
Recommend that the listbox be created as unbound and filled thru code using AddNew method.