Click to See Complete Forum and Search --> : C# Override CheckedListBox


ikurtz
January 9th, 2010, 09:59 AM
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.

Arjay
January 9th, 2010, 05:45 PM
Can you explain further? What does CheckedListBox do that you do not like?

boudino
January 11th, 2010, 02:14 AM
Subscibing to CheckedChanged event is not enought?