I am creating a winforms application with a Checkedlistbox which contains some names. What i need is for the checkboxes to be disabled from being checked by clicking, but still be checkable from the code.
I tried setting the .CheckOnClick
to false, but then the checkbox still checks on the second click.
I've tried the solution from the following question: How to disable a checkbox in a checkedlistbox? But this resulted in disabling the ability of checking from the code as well..
Disabling the entire box is not an option, this will disable all events including the selecting and doublemouseclick which are crucial in my application.
Anyone that knows a solution for this?