### Check RadioButton selected

An example of checking if a RadioButton is selected.
'Checks if a radiobutton is selected.
'The radiobuttons are defined in the rootpane of a form
`Sub CheckRadioButtonSelected(frm As Form)
For Each n As Node In frm.RootPane.GetAllViewsRecursive
If n Is RadioButton Then
Dim rb As RadioButton = n
If rb.Selected Then
fx.Msgbox(MainForm, $"The RadioButton selected is ${rb.Text}"$, "Check RadioButton Selected")
Exit
End If
End If
Next
fx.Msgbox(MainForm, $"There is no RadioButton selected."$, "Check RadioButton Selected")
End Sub`

Changed: , Category: RadioButtons, File: T6C233M1703.htm, ID: 1703