Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
So i got this triva kinda game, and when you get a question right you get a point. But I have like 15quesions all on different forms (within the 1 project of course), so how do I show the value(how ever many the got right) out of 15 at the end (once they have finished all the questions)?
Posted

As the question turned out to be very popular, and my previous answers often were not well understood, probably were not clear enough, I decided to write a Tips/Trick article complete with detailed code samples and explanations: Many Questions Answered at Once — Collaboration between Windows Forms or WPF Windows.

—SA
 
Share this answer
 
I believe you may use an environment integer variable to update / save / retrieve the total score.
your my.settings.variable will start from 0 (let's say) and every right answer in the forms will simply add its score to the variable, save and reload settings
In the end you simply retrieve the variable and place it in a label as .tostring (or you can keep it as an integer, as you wish)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900