Solved

Adding new my.settings items from within the source

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

691 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