I need to be able to filter a listbox for check box that are marked. Then expand back again. Anybody have any code to do this??
Printable View
I need to be able to filter a listbox for check box that are marked. Then expand back again. Anybody have any code to do this??
Just wanted to change the subject name for this one
Look for Selected property.
with something like this
for ii = 0 to List1.Count -1
if list1.Selected(ii) = true then
' if you have Check boxes style, it will automatically be
' multiple select.
index ii is selected.
end if
next ii
For filtering i would go for 2 list boxes. Have all the original strings in one and then copy all the selected strings into other and display at the same place!. A small flicker would be there, hope it is not annoying!!
Or you can maintain your own list of strings selected/all and add to the list box.
Ravi Kiran
Life is a comedy for those who think and a tragedy for those who feel