As Morten says, you just disable the specific radiobutton. F.x. if we
have 3 radiobuttons (rb1, rb2, rb3) in a groupbox (grp_radiobuttons)
and you want to disable rb2, then you just write rb2.enabled = false.
I apologize. I'm kind of new at this. I have just discovered the control
the radio buttons are on are a radiobuttonlist control. Should I make them
radio buttons and put them in a group box? The help indicates it is easier
to determine which one was selected, in a radiobuttonlist control.
> As Morten says, you just disable the specific radiobutton. F.x. if we
> have 3 radiobuttons (rb1, rb2, rb3) in a groupbox (grp_radiobuttons)
> and you want to disable rb2, then you just write rb2.enabled = false.
Morten Wennevik - 30 Sep 2005 19:23 GMT
I'm afraid I'm not familiar with the RadioButtonList (for future reference indicate if the control in question is a web control as they differ somewhat from windows controls), but I don't think you can enable a single RadioButton in that list. You can as you say use individual RadioButtons in a container control like a GroupBox and enable and disable them as you like.

Signature
Happy coding!
Morten Wennevik [C# MVP]
Leonard - 30 Sep 2005 19:58 GMT
Thanks
> I'm afraid I'm not familiar with the RadioButtonList (for future reference indicate if the control in question is a web control as they differ somewhat from windows controls), but I don't think you can enable a single RadioButton in that list. You can as you say use individual RadioButtons in a container control like a GroupBox and enable and disable them as you like.