Solved

Adding new my.settings items from within the source

Posted on 2006-11-13
2
164 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Modal Popup Extender control 1 38
Datagridview column when exported to Excel changes vb.net 1 19
Convert Ctime to date time in textfile? 7 31
Name Space error VS2015 1 24
This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

856 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