what i have done is copied answer in label and now matching the radiobutton option with it so far so good but i dont know how to uncheck radio button when i get to next question and method of mine stucks in between like sometime it just donot match the answer at all my code is below,. any other method that can help needed thanx
if (radioButton1.Checked)
{
if (labelanswer.Text == radioButton1.Text.Trim())
{
MessageBox.Show("right");
score = +score + 1;
labs.Text = score.ToString();
}
else if
(radioButton2.Checked)
{
if (labelanswer.Text == radioButton2.Text.Trim())
{
MessageBox.Show("right");
score = +score + 1;
labs.Text = score.ToString();
}
}
else if
(radioButton3.Checked)
{
if (labelanswer.Text == radioButton3.Text.Trim())
{
MessageBox.Show("right");
score = +score + 1;
labs.Text = score.ToString();
}
else if
(radioButton4.Checked)
{
if (labelanswer.Text == radioButton4.Text.Trim())
{
MessageBox.Show("right");
score = +score + 1;
labs.Text = score.ToString();
}
}