Actually I have googled and am looking for something like this
http://www.codeproject.com/KB/cs/configeditor.aspx which would let the user edit application settings easily. Unfortunately
this one does not load my app.config (given below) for some reason.
Regards
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings"
type="System.Configuration.ApplicationSettingsGroup, System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="EMS.My.MySettings"
type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"
/>
</sectionGroup>
</configSections>
<connectionStrings>
<add name="EMS.My.MySettings.EMSDataConnection"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="C:\EMS
2008\Data\Events Manager Data.mdb"" providerName="System.Data.OleDb" />
</connectionStrings>
<system.diagnostics>
<sources>
<!-- This section defines the logging configuration for
My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog" />
<!-- Uncomment the below section to write to the Application Event
Log -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information" />
</switches>
<sharedListeners>
<add name="FileLog"
type="Microsoft.VisualBasic.Logging.FileLogTraceListener,
Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
initializeData="FileLogWriter" />
<!-- Uncomment the below section and replace APPLICATION_NAME with the
name of your application to write to the Application Event Log -->
<!--<add name="EventLog"
type="System.Diagnostics.EventLogTraceListener"
initializeData="APPLICATION_NAME"/> -->
</sharedListeners>
</system.diagnostics>
<applicationSettings>
<EMS.My.MySettings>
<setting name="ClientErrorLogEmailRecipient" serializeAs="String">
<value>info@mydomain.co.uk</value>
</setting>
<setting name="ErrorLogEmailFrequency" serializeAs="String">
<value>1</value>
</setting>
<setting name="Sender" serializeAs="String">
<value>EMS-Squeeze@mydomain.co.uk</value>
</setting>
<setting name="SMTPServer" serializeAs="String">
<value>smtp.myisp.co.uk</value>
</setting>
<setting name="strLocalDDB" serializeAs="String">
<value>"C:\BlahBlah\Replica of MyDB.mdb"</value>
</setting>
<setting name="strRemoteDDB" serializeAs="String">
<value>"F:\BlahBlah\MyDB.mdb"</value>
</setting>
</EMS.My.MySettings>
</applicationSettings>
</configuration>
[quoted text, click to view] "rowe_newsgroups" <rowe_email@yahoo.com> wrote in message
news:fc6aa312-e4a5-41c7-942d-d330dec3f228@s8g2000prg.googlegroups.com...
> On Feb 13, 9:47 am, "John" <J...@nospam.infovis.co.uk> wrote:
>> Hi
>>
>> Is there an easy way to allow user to change application settings at run
>> time short of editing the configuration file manually?
>>
>> Thanks
>>
>> Regards
>
> Dang, do you search for anything?
>
> If you didn't know, this group is archived at:
>
>
http://groups.google.com/group/microsoft.public.dotnet.languages.vb/topics?lnk=gschg&safe=on
>
> Most of your answers could be found there or by searching google.
>
> Thanks,
>
> Seth Rowe [MVP]