?
Solved

Adding new my.settings items from within the source

Posted on 2006-11-13
2
Medium Priority
?
168 Views
Last Modified: 2008-02-01
I'm using the my.settings feature in vb.net 2005 to save application settings. However, I need to create new setting items from within the program while it's running as the user can add new data files which are listed within a checked list box and I want the app to remember which boxes were checked at exit when the app next runs.

Is there a way of creating a my.settings array to cycle through the items listed in the checked list box, or adding a new my.settings item when the user adds a new file to the checked list box? Or am I going to have to revert to saving the settings within my own XML file?

Thanks!
0
Comment
Question by:leviman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
Kinger247 earned 1500 total points
ID: 17929808
You could setup a delimited string with them in and save that to the application settings.

So ListboxSettings = "setting1=value1|setting2=value2 .... etc ..."

Then split them before use.
0
 

Author Comment

by:leviman
ID: 17971660
Thanks for that - got it working.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month14 days, 12 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question