473,385 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 5869
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Craig Keightley | last post by:
I have a page that has n number of radio groups (yes/No) how can i prevent the form being submitted if more than one radio group is not selected? By default all radio groups are unchecked ...
5
by: Digital Puer | last post by:
I have the following HTML form: - radio button A (default selected) - radio button B - input field, of type "file" with "Choose" button - submit button I would like to have it so that if the...
4
by: Ed Jay | last post by:
I use window.document.form1.myCheckbox.checked=false; to uncheck (reset) several checkboxes. What is an equivalent for resetting a set of interrelated radio boxes? -- Ed Jay (remove M to...
5
by: Jan Smith | last post by:
I have a C# project that has a tab control with four tab pages. On each tab page is a set of three radio buttons (named radioButton1 through radioButton12). I would like to loop through the radio...
7
by: Martijn Mulder | last post by:
How can I put a set of Radio Buttons in a Menu? A bullet list of items where selecting one automatically unselects the others. Thanks
3
by: The alMIGHTY N | last post by:
I have a set of radio buttons that are not clickable in Internet Explorer. I dynamically generated them using DOM functions. The arrValues array below stores integers. obj4 =...
1
by: IchBin | last post by:
I am trying to set the state of a radio button. I do not see what I am doing wrong. Sorry, I am new at this.. I need another set of eyes to look at this snip of code. I am trying to set the radio...
10
by: IchBin | last post by:
I am trying to set the state of a radio button. I do not see what I am doing wrong. Sorry, I am new at this.. I need another set of eyes to look at this snip of code. I am trying to set the radio...
5
by: Peted | last post by:
I know you can iterate through a collection of radio buttons in a panel, using a "for each in control" type iteration that c# supports, but is it possible to iterate through the radio buttons...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.