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

Add the radio buttons

On the right hand side of the form, draw a shape with the following properties:

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 

screenshot

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.

Add another frame with 3 radio buttons to change the colour of the circle from blue to red to yellow.

You will need this line of code:

Shape1.fillcolor=vbRed