App.Config change value
问题 This is my App.Config <?xml version=\"1.0\" encoding=\"utf-8\" ?> <configuration> <appSettings> <add key=\"lang\" value=\"English\"/> </appSettings> </configuration> With this code I make the change lang = \"Russian\"; private void Main_FormClosing(object sender, FormClosingEventArgs e) { System.Configuration.ConfigurationManager.AppSettings.Set(\"lang\", lang); } But it not change. What I\'m doing wrong? 回答1: You cannot use AppSettings static object for this. Try this string appPath = System