Radio Button Examples

Example 1. Disable or enable a radio button.

IF boolEnable == true          

{

    rbtMale.Enable()

    rbtFemale.Enable()

}

ELSE

{

    rbtMale.Disable()

    rbtFemale.Disable()

}

Note:

Example 2. Hide or show a radio button.

IF boolShow == false           

{

    rbtMale.Hide()

    rbtFemale.Hide()

}

ELSE

{

    rbtMale.Show()

    rbtFemale.Show()

}

Note:

Example 3. Set focus on the radio button.

rbtFemale.SetFocus()

Note: