How to cancel RadioButton or CheckBox checked change

.net, events, winforms

Solution

Set AutoCheck to false.

Override OnClick to manual check the checkbox

Problem

Is there any way to cancel a RadioButton or CheckBox's change in state before it changes? I was hoping for a simple event like CheckedChanging or BeforeCheckedChange. I really want to avoid listening for mouse clicks and key presses. But if you know of a proven reliable way of using mouse clicks and key presses, please explain it. I'm using .NET 2.0 with standard Winforms controls.

Original source