Referring to this thread http://www.vbforums.com/showthread.php?t=580584
Whenever I clicked the correct button, it does not show the correct answer as the radio button is quickly unchecked. How to overcome this?Code:Private Sub rdbAfghanistan_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rdbAfghanistan.CheckedChanged If rdbAfghanistan.Checked And random = 0 Then lblMessage.Text = "Congratulations, you'ge got the corrent one" Else lblMessage.Text = "Sorry, you are wrong, the correct answer is " End If btnFlag.Enabled = True 'enable the btnFlag button pnlCountries.Enabled = False 'disable the pnlCountries panel rdbAfghanistan.Checked = False End Sub
What i want is when i check the button, the message is displayed and the radio button again is unchecked.




Reply With Quote