Store user settings into application folder

前端 未结 2 1640
时光取名叫无心
时光取名叫无心 2021-01-02 06:52

I\'m using setting from my C# application like this:

String str = Properties.Settings.Default.SETTINGS_NAME;

When I save this settings, a s

2条回答
  •  误落风尘
    2021-01-02 07:42

    You can control the location of the user.config file by creating a custom SettingsProvider. Luckily for you, someone at CodeProject already did that.

    See my answer here for all the details: How to make designer generated .Net application settings portable

提交回复
热议问题