|
-
Apr 8th, 2004, 12:54 PM
#3
Thread Starter
New Member
Yeah, I guess I wasn't very specific. Basically, I'm writing sort of a questionaire or test. It reads the questions from a file. Each question will be placed in a groupbox as a label. The groupbox also contains another groupbox that houses the radio buttons.
Each question group box (containing questions and choices) is added to a collection. There are three questions per page so a next button loads the next three questions onto the form.
So, whenever I hit either the next or previous button, I'd like to store my answers to an array (for now). I just don't know how to refer to the radio buttons inorder to check their state.
Here is a sample of how each question is organized:
VB Code:
grpBoxTFQuestion = New GroupBox
With grpBoxTFQuestion
.Size = gbTFq.Size
End With
lbltfquest = New Label 'creates a new label
grpBoxTFQuestion.Controls.Add(lbltfquest) 'adds the question in the group box
With lbltfquest
.Size = lblTFQuestion.Size
.Text = p(1)
.Location = lblTFQuestion.Location
End With
grpboxRDOButtons = New GroupBox 'group box for true false selection
grpBoxTFQuestion.Controls.Add(grpboxRDOButtons)
With grpboxRDOButtons
.Size = gbTF.Size
.Location = gbTF.Location
End With
rdoT = New RadioButton
grpboxRDOButtons.Controls.Add(rdoT)
With rdoT
.Size = rdoTrue.Size
.Location = rdoTrue.Location
.Text = rdoTrue.Text
End With
rdoF = New RadioButton
grpboxRDOButtons.Controls.Add(rdoF)
With rdoF
.Size = rdoFalse.Size
.Location = rdoFalse.Location
.Text = rdoFalse.Text
End With
I'm sure it's a simple answer, but I'm an even bigger simpleton!!!
Last edited by stefanos33; Apr 8th, 2004 at 02:48 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|