473,322 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

appSetting "sub-settings"

Hi all,

I'm looking for suggestions on storing classifications of application
settings in a WinForms app. I've got a couple ideas using XML config files.
One is to have a set of .config files for each classification. For example,
I might have a Documents.config that adds key/values for
application-servicing files.

The other idea, is just an idea. Is it possible to have sub-tags inside
configuration files and still access through the AppSettings collection or
GetConfig method?

Something like

<appSettings>
<CommonFiles>
<add key="AddressLabel" value="MyLabel.doc">
</CommonFiles>
</appSettings>

Is there another, better way to store application-wide settings that would
be better for moderately frequently accessed settings?

TIA,

John
Nov 22 '05 #1
2 1834
You can create custom sections in a config file. To get you started, you
can read about the IConfigurationSectionHandler.
"John Spiegel" <js******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:OI**************@tk2msftngp13.phx.gbl...
Hi all,

I'm looking for suggestions on storing classifications of application
settings in a WinForms app. I've got a couple ideas using XML config files. One is to have a set of .config files for each classification. For example, I might have a Documents.config that adds key/values for
application-servicing files.

The other idea, is just an idea. Is it possible to have sub-tags inside
configuration files and still access through the AppSettings collection or
GetConfig method?

Something like

<appSettings>
<CommonFiles>
<add key="AddressLabel" value="MyLabel.doc">
</CommonFiles>
</appSettings>

Is there another, better way to store application-wide settings that would
be better for moderately frequently accessed settings?

TIA,

John

Nov 22 '05 #2
Looks good! Thanks, Peter.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:eh**************@TK2MSFTNGP14.phx.gbl...
You can create custom sections in a config file. To get you started, you
can read about the IConfigurationSectionHandler.
"John Spiegel" <js******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:OI**************@tk2msftngp13.phx.gbl...
Hi all,

I'm looking for suggestions on storing classifications of application
settings in a WinForms app. I've got a couple ideas using XML config

files.
One is to have a set of .config files for each classification. For

example,
I might have a Documents.config that adds key/values for
application-servicing files.

The other idea, is just an idea. Is it possible to have sub-tags inside
configuration files and still access through the AppSettings collection or GetConfig method?

Something like

<appSettings>
<CommonFiles>
<add key="AddressLabel" value="MyLabel.doc">
</CommonFiles>
</appSettings>

Is there another, better way to store application-wide settings that would be better for moderately frequently accessed settings?

TIA,

John


Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Phil Powell | last post by:
Dim brinksterAdRemoveRegexp set brinksterAdRemoveRegexp = new RegExp brinksterAdRemoveRegexp.Pattern = "(<!-{2,}*BEGIN.+*END.+PLEASE REMOVE*-{2,}>)" brinksterAdRemoveRegexp.Global = TRUE...
7
by: Brett | last post by:
What is the C# equivalent of VB.NET's Exit Sub? Thanks, Brett
2
by: Tee | last post by:
what's the differences between "Overrides Sub OnError" and "Sub Page_Error" ?
2
by: Yannick Turgeon | last post by:
Hello, I'm using A97 (french version) on XP (english version). Since this afternoon, all the Access built-in french-equivalent function are generating a "Sub or Function not defined" error. An...
7
by: zheetee | last post by:
<script type="text/vbscript"> sub setTextBoxValue(a1,a2) thedelete.deleteTextBox.value = a1 end sub </script> <td> <a href="#"...
2
by: loga123 | last post by:
Hi All, I am new to .net. I am creating a text box in a "button1" "click event" dynamically based on user input. Name of the text box and ID of the text box contro are set dynamically in the...
2
by: jvvhie | last post by:
Hello, I am writing a pure-Python game engine that interprets the code of game objects within the same process with the exec statement. My main goal is to make as much power available as possible...
23
blyxx86
by: blyxx86 | last post by:
Hey everyone, I'm working on a new database system to generate reports on the work technicians are doing and what their overall Pass/Fail rate is. I have the majority of the database set up and...
1
by: kkgour | last post by:
i have designed a simple console application to display a line of text, after debug i got error "sub main missing" . how to remove
3
by: eBob.com | last post by:
How does a "sub-form", i.e. one invoked by another form, determine anything about the form which brought it into existence, i.e., I suppose, instantiated it? I wanted to so something like this ......
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.