I’m using a CheckedListBox control in a small application I’m working on. It’s a nice control, but one thing bothers me; I can’t set a property so that it only checks the item when I actually check the checkbox.
What’s the best way to overcome this?
I’ve been thinking about getting the position of the mouseclick, relative from the left side of the checkbox. Which works partly, but if I would click on an empty space, close enough to the left the current selected item would still be checked. Any ideas regarding this?
I’m using a CheckedListBox control in a small application I’m working on. It’s a
Share
Well, it is quite ugly, but you could calculate mouse hit coordinates against rectangles of items by hooking on
CheckedListBox.MouseDownandCheckedListBox.ItemChecklike the following