Solved

Adding new my.settings items from within the source

Posted on 2006-11-13
2
162 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
2 Comments
 
LVL 10

Accepted Solution

by:
Kinger247 earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DataGridView Events ? 3 37
Get Top Visible Row of Datagridview 6 26
Ajax Panel Not Updating When Triggered By Timer 4 36
Pagebreak issue while printing the aspx page 3 10
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

937 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

Need Help in Real-Time?

Connect with top rated Experts

4 Experts available now in Live!

Get 1:1 Help Now