De-select items in listbox

T

Trang

I have a reset button, when click on that, all the
selected items in the listbox will be clear out. what is
the syntax to deselect items in listbox? Thanks.

Trang
 
M

Mauricio Silva

This is fast for long list, but works well for any size:

While (YourListBox.ItemsSelected.Count > 0)
YourListBox.Selected(YourListBox.ItemsSelected(0)) = False
Wend

Mauricio Silva
 

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