471,593 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,593 software developers and data experts.

Radio Buttons loosing checked state

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

Similar topics

6 posts views Thread by Craig Keightley | last post: by
5 posts views Thread by Digital Puer | last post: by
4 posts views Thread by Ed Jay | last post: by
7 posts views Thread by Martijn Mulder | last post: by
3 posts views Thread by The alMIGHTY N | last post: by
1 post views Thread by IchBin | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.