Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

For my A2 Computing project I have created a game using Visual Basic. For the leaderboard section, I have used the My.Settings feature to store the scores when the game closes, but only one or two actually save. My teacher doesn't know and I can't find anything helpful after a google search of the problem

share|improve this question

closed as unclear what you're asking by gnat, thorsten müller, Bart van Ingen Schenau, MichaelT, GlenH7 Apr 3 at 20:05

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

2  
Welcome to Programmers SE. This is a technical question, as opposed to the kind of questions we answer here, which are more concept oriented. Try asking in the Stack Overflow network (be sure to include the part of your code relevant to your question or a code example, as this question is not suitable for answering without it), and be sure to come back here if you have conceptual programming questions. We'll be glad to help! Good luck! –  ArthurChamz Apr 2 at 16:08

1 Answer 1

up vote 0 down vote accepted

You can force a save of the My.Settings object using My.Settings.Save(), however I'd suggest you look into writing a file to disk and using that to store your high scores. It's much better and it's a good opportunity to teach yourself about File I/O.

Here's a good tutorial on how to do that via MSDN: http://msdn.microsoft.com/en-us/library/6ka1wd3w(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1

share|improve this answer
    
Thanks for the help! –  Joe Apr 2 at 9:02
    
No problem, but as written above by @ArthurChamz, this is a more technical question (as opposed to a more abstract one about programming in general) that really belongs on Stack Overflow. In the future if you have another question along these lines, people will be happy to help over there. Good luck on your learning :) –  xiy Apr 3 at 10:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.