What is the proper way to manually check and uncheck a RadioButton when
the AutoCheck property is set to false in C#?
I have a set of radio buttons, and two of them need to prompt the user
with a confirmation dialog before allowing the value to change. To do
this, I handle the click event and set the AutoCheck property to false on
each of these radio buttons. However, the previously selected RadioButtons
are no longer unchecked when I set the check property to true on the
clicked RadioButton.
Right now I'm just looping through the controls on this panel and making
sure none of the other RadioButtons are checked, but is there a more
efficient way to do this?
No comments:
Post a Comment