Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 149385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:07:20+00:00 2026-05-11T09:07:20+00:00

In my application I allow user to choose a file with some data, data

  • 0

In my application I allow user to choose a file with some data, data is read and it should be available when user closes and opens the application again. I thought that one could store the value in Settings so I wrote a class:

public static class SettingsManager     {         public static string ComplexValidationsString         {             get { return (string)Properties.Settings.Default['ComplexValidations']; }             set { Properties.Settings.Default['ComplexValidations'] = value; }         }          //some more     } 

After setting the value and closing the application the value was lost. Is there any similar way to do it so that the value is preserved? I’ve once seen some code to replace data written in config file so I suppose there is a way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:07:21+00:00Added an answer on May 11, 2026 at 9:07 am

    It’s as easy as

    Properties.Settings.Default.Save(); 

    You can put this in you static void Main() method

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a application that allows a user to choose some parameters for a
I am downloading PDF file in my application and want to allow user to
http://f.cl.ly/items/350X3c0h0A0k3s3f1R1h/Screen%20Shot%202012-03-27%20at%202.53.41%20PM.png I'm working on an application that'll allow a user to select a range
I'm building an application that needs to allow a user to insert text from
I'm developing a Ruby on Rails application that needs to allow the user to
So I have an rails admin system that will allow a user to choose
I am using NSOpenPanel to allow the user to choose a file from their
In my web application I allow user generated content to be posted for public
In my application I allow the user to scroll a movie by holding down
In our application, we allow user's to write their Bio using a WYSIWYG editor,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.