Where are my Properties.Settings saved(softscenario.blogspot.com)

submitted by animaonlineanimaonline(275) 4 years, 3 months ago

Have you ever wondered where your user settings are saved from an .NET application? You would probably think that it's saved in the [application].exe.config(located in your application folder) file, but this is only partially true. The default values you create in Visual Studio are saved in this file. But if you change these settings at runtime: Properties.Settings.Default.myValue = "MyNewValue"; Properties.Settings.Default.Save(); they are saved to a different location. Namely the User.config file: C:\Documents and Settings\[USER]\Local Settings\Application Data\[company]\[applicationname]\[version] Note that if you should change the company name or AssemblyVersion attribute in your AssemblyInfo.cs your Settings will be saved in a new location. Since you do not override the default settings in the exe.config file, you can call the reset() method to restore the settings to its original state: Properties.Settings.Default.Reset();

add a comment |category: |Views: 24

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story