can anyone help me with how to make the settings in my app persistent When i save in the previous run using this
my.Settings.setting_name= some_value
my.Settings.save()
when g开发者_如何学运维etting the values using this
some_value=my.Settings.setting_name
i still see the old values in the IDE settings options How can i make the changes reflect even in the vs ide
thanks
The IDE will always show the default settings for your application which it copies to .exe.config file in the same folder as your executable. At runtime, the Settings.Save()
call will save the new settings in a User.Config file located in 'UserProfile'\Application Data\'Company_Name'\_mangled\Version\ folder.
I'm on Windows XP and other versions may be different.
精彩评论