How can I allow the user to click to check an item in CheckedListBox
in one click? The default behavior is the first click selects the item, the second click allows you to toggle the check. I don't want to toggle the check on select either, I'm looking for the behavior of the ListView
control where I can click directly on check boxes to toggle them without selecting their items first.
views:
233answers:
1
+3
A:
The CheckedListBox has a property CheckOnClick ;-)
EDIT: Maybe this will help you: http://stackoverflow.com/questions/1877800/how-do-i-checkonclick-in-a-checkedlistbox-but-only-when-over-the-checkbox
Regards, Tim
Tim Schmelter
2010-04-30 13:08:47
But then when I click on the text of an item, not the check box, it checks/unchecks itself. This is not the behaviour of the ListView. I want to be able to check the boxes independently of selecting items.
Dmi
2010-04-30 15:45:22
I have edited my answer and added a link: seems that somebody had already the same requirement on stackoverflow.com
Tim Schmelter
2010-05-03 11:24:59
Interesting, thanks. It's strange that it's not implemented in the control by default.
Dmi
2010-05-03 17:17:04