Help with a quiz program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • meatballs
    New Member
    • Sep 2008
    • 1

    Help with a quiz program

    Hi, i'm currently working on a fairly simple quiz program for my Software Development course at school, and I had a few questions.

    1) There is 10 questions, and I want to know if i should just make a new form for each question or is there an easier/more efficient way? If so how?

    2)How do I use radio buttons? There is 4 different possible answers for each questions, and I really have no idea on how to use them.

    Thanks for you're help guys (and girls).

    Oh BTW i'm using VB Express.
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    remember labels have properties, such as 'caption'
    so in the click event of a button you write

    label1.caption= "hello"

    you'll change it

    you can make a string array with many captions, and each time someones clicks the buton, you just display the next array element

    HTH

    Comment

    • smartchap
      New Member
      • Dec 2007
      • 236

      #3
      You may use MSAccess as storing all the questions and their answers. Now use one label with four radio buttons and one command button in the form. Label for showing the questions, radio buttons for 4 options (answers) and command button to accept the selected radio button. When after selection an option the user clicks the command button, it will check (from the dbf file) for the correct answer and display a message whether the option was correct or not, if correct proceed to next question otherwise may give correct answer and proceed further or terminate.

      Comment

      Working...