Form

GPALRadioButton

GPALRadioButton is a standard radio button for exclusive selection within a group. Add multiple GPALRadioButton controls to a GPALForm to create a group. Only one button in a group can be selected at a time. The selected value is included in the form's data output when processed with FillInFrom or read with GetGrid.

Examples

GPAL Fluent: High-level fluent C# API

//Radio buttons added to the same form are automatically grouped. Only one can be selected at a time - selecting one clears the others.

// Radio button group in a form

GPAL.Form

.WithTitle("Select Priority")

.WithFormControl((RadioButton)GPAL.RadioButton

.WithText("Low"))

.WithFormControl((RadioButton)GPAL.RadioButton

.WithText("Medium"))

.WithFormControl((RadioButton)GPAL.RadioButton

.WithText("High"))

.ShowDialog();

💬 Ask GPAL