• 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.
  • Posts

  • Recent Achievements

    • Week One Done
      Ricky Chan earned a badge
      Week One Done
    • Week One Done
      maimutza earned a badge
      Week One Done
    • Week One Done
      abortretryfail earned a badge
      Week One Done
    • First Post
      Mr bot earned a badge
      First Post
    • First Post
      Bkl211 earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      483
    2. 2
      +FloatingFatMan
      263
    3. 3
      snowy owl
      240
    4. 4
      ATLien_0
      227
    5. 5
      Edouard
      188
  • Tell a friend

    Love Neowin? Tell a friend!