I can\'t seem to prevent my form from checking one of the Radio Buttons in my Group Box
:
In the design mode, you'll find the AutoCheck property set to true. Just turn it to false. It won't be checked untill you select it manually during the runtime.
Make sure your radiobuttons are NOT the first tabindex = 0 controls. Make the OK button tabindex=0, followed by the radiobuttons.
Set the checked state to false after form load. Put this in Shown event and see if it working.
Set TabStop=False
in properties.
I think this might actually be a bug in VS. I'm using 2010 SP1 but OP doesn't mention which version they're using.
Had the same phantomness happening in one of my apps.
Changed Autochecked for the two radio buttons to False, built the app. The affected buttons were now not selected, but other ones previously unaffected were now selected.
Went back into code and turned autocheck to true on the original buttons, and then toggled from true to false and back again on the newly affected buttons. Re ran and the app was fine; no buttons selected.
When I first checked the tabIndexes for the original radio buttons they were set to tabIndex 0; which I changed, so that could also be part of the mix.