Radio Buttons loosing checked state

D

dpazza

Hi,

I'm creating a quiz on using a form in VB 2005 express.
I have four sets of questions and answers (labels and radio buttons)
and I change between which set of questions is currently shown on the
form by changing the visible state of the radio buttons and labels
utilising back and next buttons.


E.g. Next button makes current radio buttons and labels invisible and
the next set of radio buttons and labels visible.
Back button makes current radio buttons and labels invisible and the
previous set of questions and labels visible.


The problem occurs when the radio buttons are selected (questions
answered) if I click the back buttons to go back to a previous set of
questions and answers the radio buttons (answers) get reset so none
of
them are selected.


Is there a way to do the above but maintain the checked status
regardless of if the person clicks back or next to review/change
their
answers?


Thanks for any help.
 
G

Guest

dpazza,

Only one radio button in a group can be selected.

A radio button group is defined by thier container. It sounds like all of
your radio buttons are one big group defined by the form as the container.

You need to place all the radio buttons for a particular question into their
own container, like a groupbox, etc.

Kerry Moorman
 
D

dpazza

dpazza,

Only one radio button in a group can be selected.

A radio button group is defined by thier container. It sounds like all of
your radio buttons are one big group defined by the form as the container.

You need to place all the radio buttons for a particular question into their
own container, like a groupbox, etc.

Kerry Moorman










- Show quoted text -

Thanks for the reply

The radio buttons are in a group boxes
I have 20 group boxes total
10 group boxes have two radio buttons in them (that gives me true/
false type answers) and 10 with four radio buttons (for multiple
choice)
The problem isnt with selection that part works fine its when clicking
back to previous set of questions and answers that the checked radio
buttons become unchecked.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top