المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : C# Override CheckedListBox



C# Programming
01-10-2010, 02:21 PM
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.