Quiz App that accepts more than 1 choice
Hi, i'm pretty new to VB and need help creating a Quiz application. I see a lot of quiz app that only accept 1 answer with the radial button, but i need a more advance one.
The quiz should be able to accept more than 1 choice using a checkbox. (example: a question with 2 or more answer)
also the questions and answers are in .txt. If you think using a database is more suitable. i wouldn't mind it either,but i prefer it being in .txt.
I desperately need your help. thanx!
if you also know of a good book on VB in building application like this. Please recommend it to me. Thanx.
Use This Site as your book
If you want to answer a quiz with multiple choice, you should use a combobox. Put the control on your form, stick the answers in the combobox, then use a select case statement to check for the correct answer.
i.e.
Select Case cboAnswer.Text
Case "True"
msgbox "Your Answer is Correct!"
Case "False"
msgbox "LOSER!"
End Select