AllExperts > Experts 
Search      

VB.NET

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More VB.NET Answers
Question Library

Ask a question about VB.NET
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Brandon Drake
Expertise
I can answer questions regarding the Graphics object, file access, general optimization, printing (on paper), user controls, program mathematics, the registry, creating macros, processes, and fundamental or basic questions. I have made a few asp.net pages but I do not know the language extensively. I have not done much work with databases but I have created my own database systems.

Experience
I have been programming with visual basic for 6 years. In all I have written programs in about 8 programming languages, although, I only know about 3 well. I have written a few applications but mainly I like to write programs for fun.

 
   

You are here:  Experts > Computing/Technology > Basic > VB.NET > Fill in the blanks questionnaires

Topic: VB.NET



Expert: Brandon Drake
Date: 5/10/2006
Subject: Fill in the blanks questionnaires

Question
I am trying to create a questionnaire in VB.net that could be used by someone to loads up a questionnaire and then for reach question fill in the blank bit as their answer.  It needs to collate the correct answers and then give a total at the end.  Have you any advice?

Answer
Richard,

Well you could start by making an array of questions, and an array of answers that would be saved as the user submits information.

You could create a Form with a Label, Text Box, and a Button.  Then every time the user clicked the button (a "Next" button) the Label's text would change to the text of the next question and the Text Box's information would be stored in the answers array.  When you are done you could compare each answer to an answer's array.

I am guessing that you would want to use a file to load the questionnaire.  There are hundreds of ways of loading the questionnaire so I can't give you a strait solution.  I would look up the "StreamReader" and "StreamWriter" classes in Help.

If you have any more questions or if something above was not clear, you can always send me another question.



Good Luck,

Brandon Drake


Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.