Kavya S

Kavya S

  • NA
  • 26
  • 5.8k

enable/disable of buttons, textboxes

Mar 25 2019 11:40 PM
when 1 of the radio button is enabled, i need to disable 2nd radio button and one of the textbox, I have done like this but its not working, please help me out with this.
 
Private void radiobutton1_CheckedChanged(object sender, eventargs e)
{
if (radioButton1.Checked == true)
{
radioButton2.Enabled = false;
textBox1.Enabled = false;
}

Answers (3)