Solved

Adding new my.settings items from within the source

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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 …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 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

23 Experts available now in Live!

Get 1:1 Help Now