Click to See Complete Forum and Search --> : List Box


tray
August 2nd, 1999, 12:49 PM
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??

tray
August 2nd, 1999, 03:26 PM
Just wanted to change the subject name for this one

Ravi Kiran
August 2nd, 1999, 10:18 PM
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