Radio Buttons and Check Boxes are used for making choices. Radio buttons allow the user to make only one choice from a list, whereas check boxes allow several choices from the one list.
Usually check boxes and radio buttons are grouped together in frames.
Start a new project.
To create a set of radio buttons in a frame:
Create the frame
- Click on the frame icon
in the toolbox - Click and drag out a frame on your form
- Set the frame caption to be Size
- Show Me How
Add the radio buttons
- Click the radio button tool

- Click and drag out an option inside the frame
- Set the following properties:
- name optLarge
- caption Large
- Show Me How
- Repeat for two more buttons (Medium and small)
On the right hand side of the form, draw a shape with the following properties:
- Width = 4000
- Shape = 3 (Circle)
- FillStyle = 0 (Solid)
- Fillcolor= Choose a colour
Add in the code
Double click the optLarge radio button and add in this code:
Private Sub optLarge_Click()
Shape1.Width = 4000
End Sub
While still in the code window, select the optMedium radio button by choosing it from the drop down menu

Add in this code:
Private Sub optMedium_Click()
Shape1.Width = 2000
End Sub
Now select the optSmall radio button and add in this code:
Private Sub optSmall_Click()
Shape1.Width = 1000
End Sub
Test your program. As the user clicks one of the options, the circle should change size.
![]() |
|


