I'm looking for a way to uncheck the selected check box/radio button/toggle button using the keyboard in Windows 7, preferably in XP and Vista as well. I know you can use the Space bar to toggle the state of the currently selected button, but is there a way to set a control to ticked or unticked without risk of toggling it if is is already in the desired state?
There is no way to control this for sure.
There are underlying controls that have default behaviors in Windows forms. Factors such as if these controls are a part of a control group will also have an affect on the outcome.
Also, there is no way to know how a developer handles certain events based on control selection and changes.