Home > Net >  C#
C#

Time:10-06

In c # form three radio button how to obtain the value of the three

CodePudding user response:

Bool button 1 selected=radioButton1. Checked;
Bool button 2 selected=radioButton2. Checked;
Bool button 3 selected=radioButton3. Checked;

CodePudding user response:

RadioButtonList recommendation,

CodePudding user response:

Foreach (c in this CheckBox. Controls. OfType ())
MessageBox. Show (" c.N ame "+ (Arthur c. hecked? "" :" no ") + "select");
  •  Tags:  
  • C#