I have a listbox full of database items. How do I add item "All ofthe above"

C

COHENMARVIN

I have a listbox of cities.
The listbox is bound to a database table.
But I want to add the option - "all cities" to the listbox.
How do I do that?

Thanks,
Marvin
 
M

Matt MacDonald

After you bind the control, do something like

listbox1.items.add("All Cities")
 
T

Trevor Benedict

Use the Listbox.Items.Insert method after binding the data to a datasource.

Regards,

Trevor Benedict
MCSD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top