C# Override CheckedListBox
-
i need to override the base CheckedListBox behaviour. it is possible to check and uncheck a CheckedListBox without any code attached to it. i need to disable this behaviour so that i can implement custom code. any ideas? for example: if (ListenCheckedListBox.GetItemChecked(0)) { ListenCheckedListBox.SetItemChecked(0, false); } if (!ListenCheckedListBox.GetItemChecked(0)) { ListenCheckedListBox.SetItemChecked(0, true); } does not work because the controls default behaviour already does this anyway. hopefully you can understand my issue. thanks.
-
i need to override the base CheckedListBox behaviour. it is possible to check and uncheck a CheckedListBox without any code attached to it. i need to disable this behaviour so that i can implement custom code. any ideas? for example: if (ListenCheckedListBox.GetItemChecked(0)) { ListenCheckedListBox.SetItemChecked(0, false); } if (!ListenCheckedListBox.GetItemChecked(0)) { ListenCheckedListBox.SetItemChecked(0, true); } does not work because the controls default behaviour already does this anyway. hopefully you can understand my issue. thanks.
Have you looked at the CheckedListBox.CheckOnClick property? :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
Happy New Year to all.
We hope 2010 soon brings us automatic PRE tags!
Until then, please insert them manually.
-
Have you looked at the CheckedListBox.CheckOnClick property? :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
Happy New Year to all.
We hope 2010 soon brings us automatic PRE tags!
Until then, please insert them manually.