I have a ListBox that list all the items in different categores. Since there are too many, I want the items to be color coded base on their categories. Is it possible?
Mike Gagnon has given you one good possibility. Another is to use a grid instead of a listbox. With grids, you can use the Dynamic... properties for format items based on some condition.
You mentioned that you have "too many" items. An advantage of a grid is that it works equally well with large numbers of items, whereas a listbox doesn't work so well with more than a few dozen or a few hundrend entries (depending on version and configuration).
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Given that there are Categories, I would suggest using a treeview control (if you don't mind a little ActiveX dependence). It will allow you to group the items beneath the different categories and you can even assign to each a different icon representing the category it is a member of. Also, it allows users to still make selections and can even include checkboxes for making multiple selections.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.