VB 2010 - create custom section in app.config

Posted on 2013-10-17
Medium Priority
Last Modified: 2013-10-17

I use app.config file for storing config values for my VB 2000 Widows Forms application. Iknow, how to use <appSettings> and store keys in it.

        <add key="myExampleValue1" value="123" />
        <add key="myExampleValue1" value="abc" />

Open in new window

I would like to programmatically create the same section with my custom name and use it in the same way like section <appSettings>

For example:

        <add key="myExampleValue3" value="1234" />
        <add key="myExampleValue4" value="abcd" />

Open in new window

The reason is, that I would like to encrypt <mySection> similar like I have the section <connectionStrings> encrypted.

 <connectionStrings configProtectionProvider="DataProtectionConfigurationProvider">

Open in new window

How is it possible to create <mySection>?

Question by:skdan
LVL 71

Accepted Solution

Éric Moreau earned 2000 total points
ID: 39579276

Author Comment

ID: 39579478
Thank you.

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
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 …
Free Data Recovery software is an advanced solution from Kernel Tools to recover data and files such as documents, emails, database, media and pictures, etc. It supports recovery from physical & logical drive after a hard disk crash, accidental/inte…
From store locators to asset tracking and route optimization, learn how leading companies are using Google Maps APIs throughout the customer journey to increase checkout conversions, boost user engagement, and optimize order fulfillment. Powered …

600 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