by Vlad Vissoultchev (13 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(6 Votes)

UPDATE(2003-12-06): Off-by-one error when using large font sizes fixed.
_________________________________________________
This is a class that extends standard VB.ListBox control when its style is set to 1 - Checkbox. In addition to the standard checked/unchecked states listbox items can be marked as unknown (greyed) too. Also, mouse clicks/dbl-clicks anywhere on the item are interpreted as selection requests. This behaviour closely emulates the listbox control implementation in the Outlook Categories dialog. Enjoy!