これは、このコードでは、私のapp.configをapp.configを変更値
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="lang" value="English"/>
</appSettings>
</configuration>
である私は、変更
lang = "Russian";
private void Main_FormClosing(object sender, FormClosingEventArgs e)
{
System.Configuration.ConfigurationManager.AppSettings.Set("lang", lang);
}
を作るしかし、それは変わりません。私は間違っているの?
も参照してください:http://stackoverflow.com/questions/5274829/configurationmanager-appsettings-how-to-modify-and-保存 –
[app.configファイルの値を書き込む]の可能な複製(http://stackoverflow.com/questions/4758598/write-values-in-app-config-file) – nawfal