• 0

Application Configuration question


Question

Hey all. I am making an application configuration setting...

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
<add key="ChrominanceVal"
value="0"  />
</appSettings>

</configuration>

Now, I want to change this setting when a trackbar is moved... I tried with this code:

ConfigurationSettings.AppSettings.Set("ChrominanceValtrtrckChrominance.Value)

But I get an error from VS saying it's read-only. How do I make it writable?

Link to comment
https://www.neowin.net/forum/topic/303780-application-configuration-question/
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Actually you can use the App.config file to save app settings.

http://msdn.microsoft.com/library/default....net04222003.asp

However i find it hard to just use it and i'd rather opt to use serialization to create my own xml settings files.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.