By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,178 Members | 2,144 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,178 IT Pros & Developers. It's quick & easy.

Radio Buttons loosing checked state

P: n/a
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.

May 10 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
"dp****@yahoo.com" wrote:
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.

May 10 '07 #2

P: n/a
On May 10, 10:58 pm, Kerry Moorman
<KerryMoor...@discussions.microsoft.comwrote:
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

"dpa...@yahoo.com" wrote:
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.- Hide quoted text -

- 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.

May 10 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.