Article Options
Premium Sponsor
Premium Sponsor

 »  Home  »  .NET Newbie  »  Application Settings in VB 2005  »  Summary
 »  Home  »  Windows Development  »  Visual Basic 2005  »  Application Settings in VB 2005  »  Summary
 »  Home  »  Windows Development  »  Win Forms  »  Application Settings in VB 2005  »  Summary
Application Settings in VB 2005
by Ged Mead | Published  11/09/2006 | .NET Newbie Visual Basic 2005 Win Forms | Rating:
Ged Mead

Ged Mead (XTab) has been around computers since the 1980's when the first affordable home computers came on the market. His journey from that very first Dragon 32 to the present has taken him through many different facets of the IT Industry. These include formal training as a Systems Analyst, employment in a mainframe software development environment, and a short time spent demonstrating rugged military IT systems in the days when it took two strong men to carry a 'mobile' system.

His most rewarding challenge was the creation of a financial management system for a large organisation.

Now based in an idyllic lochside location in the West of Scotland, he is currently involved in a range of development projects, whenever he can drag his gaze away from the stunning surrounding views, that is!

Ged is a Microsoft MVP, Senior Editor for DevCity.NET, vbCity Developer Community Leader and Admin, Helper of the Month competition winner and DevCity.NET newsletter Editor.

 

View all articles by Ged Mead...
Summary

Summary



   This article is intended to be a first pass at using My.Settings which is aimed at VB 2005 Beginners.   It is of course possible to drill down far deeper into this topic and hopefully I will be able to cover this in a later article.



   For the time being though, you now have the means to create, save, edit and access a whole range of Settings for your VB 2005 projects.  I hope you find this introduction to the subject to be useful to you.

 
I have included a   
Demo which you can download and try out.



 



 

How would you rate the quality of this article?
1 2 3 4 5
Poor Excellent
Tell us why you rated this way (optional):

Article Rating
The average rating is: No-one else has rated this article yet.

Article rating:4.46153846153845 out of 5
 13 people have rated this page
Article Score12442
Related Articles
Comments    Submit Comment

Comment #1  (Posted by TobyT on 11/09/2006)
Rating
Good for beginners.
 
Comment #2  (Posted by an unknown user on 12/05/2006)
Rating
Usefull feature i've never heard about before, nice article.
 
Comment #3  (Posted by an unknown user on 12/16/2006)
Rating
It is good for beginners & and to those that are not familiar with VB 2005.
 
Comment #4  (Posted by Michael Ifland on 02/11/2007)
Rating
Thank You.
 
Comment #5  (Posted by Majed on 02/21/2007)
Rating
Still too many details are missing.
 
Comment #6  (Posted by an unknown user on 08/18/2007)
Rating
Ged's articles just keep getting better and better. Being a complete newbie I really appreciate the in depth explanation of details that I am sure are common knowledge to others.
 
Comment #7  (Posted by an unknown user on 10/19/2007)
Rating
Good beginner article
 
Comment #8  (Posted by Noname on 01/04/2008)
Rating
One big mistake:

In page 2, the formsize is set without ";" (semicolon) between size values which gives error. Developers must add ; to overcome error.
 
Comment #9  (Posted by Ged Mead on 01/05/2008)
Rating
Hi "NoName". Thanks for pointing out this problem. I suspect that in truth, this may not be so much a big mistake as a fairly common locaization/internationalisation issue which occurs in many prjects where dates, times and numbers etc are used. This is because in many Western cultures, such as here in UK, we use commas, whereas elsewhere semicolons are used as delimiters.
All I can say for sure is that the sample works perfectly on my English UK system. I'm sorry if it has caused you problems.
 
Comment #10  (Posted by i.write.code on 01/22/2008)
Rating
Perfect! Thanks for pointing out the Save and Reset methods. I was pulling out my hair over settings that always seemed to reset on their own when my application was restarted.
 
Comment #11  (Posted by Rob 73 on 05/02/2008)
Rating
Just want to say thank your for a very clear, easy to follow and extremely useful article. I was initially reluctant to try using the 'my.settings' as i 'thought' it was difficult and complex when saving user preferences, and as a result nearly tore all my hair out trying to read and write from/to text files.
Thanks from me and my 'Not so bald head'
Keep up the good work!


 
Sponsored Links