Check character in Text Box to mark in a radioButton

1

I would like to know how to check if the filled-in letter in a textBox is A or B to as the result gives Checked to a RadioButton .

    
asked by anonymous 15.03.2017 / 15:22

1 answer

5
radioButtonA.Checked = textBox.Text == "A";
radioButtonB.Checked = textBox.Text == "B";
    
15.03.2017 / 15:26