开发者

making settings value persistent

开发者 https://www.devze.com 2023-04-05 16:53 出处:网络
can anyone help me with how to make the settings in my app persistent When i save in the previous run using this

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消