F
Fred Blair
I am trying to use Radio Buttons to record a student's choice on a multiple
choice test. I am using the MouseClick event to then put the choice into a
textbox. This is just to learn about radio buttons. After I get this
figured out then the choices will go into an array to save until the test is
completed for scoring.
My code is below, but nothing appears in the textbox when I click on a radio
button.
Advice please,
Fred
*******************Code below**********************
OPrivate Sub Form1_MouseClick(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick
If RadioButton1.Checked = True Then
TextBox1.Text = "A"
ElseIf RadioButton2.Checked = True Then
TextBox1.Text = "B"
ElseIf RadioButton3.Checked = True Then
TextBox1.Text = "C"
ElseIf RadioButton4.Checked = True Then
TextBox1.Text = "D"
End If
End Sub
choice test. I am using the MouseClick event to then put the choice into a
textbox. This is just to learn about radio buttons. After I get this
figured out then the choices will go into an array to save until the test is
completed for scoring.
My code is below, but nothing appears in the textbox when I click on a radio
button.
Advice please,
Fred
*******************Code below**********************
OPrivate Sub Form1_MouseClick(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick
If RadioButton1.Checked = True Then
TextBox1.Text = "A"
ElseIf RadioButton2.Checked = True Then
TextBox1.Text = "B"
ElseIf RadioButton3.Checked = True Then
TextBox1.Text = "C"
ElseIf RadioButton4.Checked = True Then
TextBox1.Text = "D"
End If
End Sub