من قسمت آپدیت اون لینک رو کپی کردم تو فرم لود و بعد از اجرا هیچ اتفاقی نیوفتاد یعنی فایل app.config هیچ تغییری نکرد . بدش اصلا اون کد از کجا بفهمه کدوم Key رو باید آپدیت کنه !!!
' Get the configuration file.
Dim config As System.Configuration.Configuration = _
ConfigurationManager.OpenExeConfiguration(Configur ationUserLevel.None)
' Add an entry to appSettings.
Dim appStgCnt As Integer = _
ConfigurationManager.AppSettings.Count
Dim newKey As String = "NewKey" + appStgCnt.ToString()
Dim newValue As String = DateTime.Now.ToLongDateString() + " " + _
DateTime.Now.ToLongTimeString()
config.AppSettings.Settings.Add(newKey, newValue)
' Save the configuration file.
config.Save(ConfigurationSaveMode.Modified)
' Force a reload of the changed section.
ConfigurationManager.RefreshSection("appSettings")