1. I can't find the file which reflects changes to user settings. This might be because I just can't find it (I can see a bunch of user.config files but they are all empty - weird!), or ...
2. I'm not actually saving them when I think I am.
Regarding 2. - do I need to invoke
immediately after every change that is made to the settings , or can I just rely on the settings being saved automatically when the application ends?Code:My.Settings.Save()
I have this code in Settings.Designer.vb :-
Is this all I need? And if so, why are my user.configs empty?Code:Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) If My.Application.SaveMySettingsOnExit Then My.Settings.Save() End If End Sub




Reply With Quote