none
How to create Tag feature in my quiz project?

    Question

  • I am creating a Quiz project(Multiple choice questions) using VB.NET and access 2003. I have almost 90 percent completed my project expect one feature(TAG).

    I need to code this feature(Requirements of this feature given below) and include in my project. I need guidance and a idea to create this feature .

    In my exam interface(where user takes the exam)contains 4 buttons: namely

    NEXT                    (To go for NEXT question)

    Previous              (To go for PREVIOUS question)

    Skip                     (To skip question)

    TAG

    TAG Button. The tag button will remember where the user left and return to the same location, when user comes
    back to quiz again.

    Please I request to all of you to help me. If possible please give me an example.

    Thank you in advance

    Tuesday, March 21, 2017 7:48 PM

Answers

  • It would be grateful if you please tell me an alternative way to do this.Especially i need to code this feature. If i use Application Settings, then it will not be considered.

    If you have been told not to use the Application Settings facility, then presumably you are required to write the values to a file that you create for the purposes.  There is no other way to persist data between invocations of the application.   Your process will, in fact, be the same as using Application Settings, except that you code it for yourself instead of using the provided facility.

    You haven't indicated what data you need to save - for instance, will it need to indicate the user and the quiz, as well as the question number?  Will the user need to save information for more than one quiz session?

    If the data to be saved is simple then the easiest thing is to get it into string format and write it to a text file:
    https://msdn.microsoft.com/en-us/library/ms128035(v=vs.110).aspx
    https://msdn.microsoft.com/en-us/library/ms143368(v=vs.110).aspx

    If it's more complex then you need to look at some of the other file options.  You should be sure to use a location for your file that will exist on any machine on any version of the OS, and which will be accessible for writing files. See:
    https://msdn.microsoft.com/en-us/library/ms172745.aspx

    • Marked as answer by Tabzee Wednesday, March 22, 2017 7:56 PM
    Tuesday, March 21, 2017 8:41 PM

All replies

  • Tabzee,

    You might want to instead use Application Settings:

    https://msdn.microsoft.com/en-us/library/a65txexh.aspx

    There are other ways but that's an easy way.


    "A problem well stated is a problem half solved.” - Charles F. Kettering

    Tuesday, March 21, 2017 8:03 PM
  • Thank you for your response sir!!!!

    It would be grateful if you please tell me an alternative way to do this.Especially i need to code this feature. If i use Application Settings, then it will not be considered.

    Waiting for your response.

    Thank you in advance

    Tuesday, March 21, 2017 8:11 PM
  • Thank you for your response sir!!!!

    It would be grateful if you please tell me an alternative way to do this.Especially i need to code this feature. If i use Application Settings, then it will not be considered.

    Waiting for your response.

    Thank you in advance

    Are you setting up a custom control or a UserControl?

    If so, that's where to add it: Many controls have a .Tag property which is defined as an Object, so that's really all you'd need to do.


    "A problem well stated is a problem half solved.” - Charles F. Kettering

    Tuesday, March 21, 2017 8:16 PM
  • It would be grateful if you please tell me an alternative way to do this.Especially i need to code this feature. If i use Application Settings, then it will not be considered.

    If you have been told not to use the Application Settings facility, then presumably you are required to write the values to a file that you create for the purposes.  There is no other way to persist data between invocations of the application.   Your process will, in fact, be the same as using Application Settings, except that you code it for yourself instead of using the provided facility.

    You haven't indicated what data you need to save - for instance, will it need to indicate the user and the quiz, as well as the question number?  Will the user need to save information for more than one quiz session?

    If the data to be saved is simple then the easiest thing is to get it into string format and write it to a text file:
    https://msdn.microsoft.com/en-us/library/ms128035(v=vs.110).aspx
    https://msdn.microsoft.com/en-us/library/ms143368(v=vs.110).aspx

    If it's more complex then you need to look at some of the other file options.  You should be sure to use a location for your file that will exist on any machine on any version of the OS, and which will be accessible for writing files. See:
    https://msdn.microsoft.com/en-us/library/ms172745.aspx

    • Marked as answer by Tabzee Wednesday, March 22, 2017 7:56 PM
    Tuesday, March 21, 2017 8:41 PM
  • Thank you for your responses.

    It gave me a idea to code this feature. I created a table inside my database to track all user information and restored back when it was required.

    Wednesday, March 22, 2017 7:56 PM