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

  • Home
  • SEARCH
  • 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 8869893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:35:20+00:00 2026-06-14T17:35:20+00:00

I was thinking about something like SharedPreferences from android in c#. I mean I

  • 0

I was thinking about something like SharedPreferences from android in c#. I mean I want to save value one variable even if I close application and run again. I want to save this value every time when I close application and run again. How I can do that? I know that is possible when I am using data base but maybe is any other solution?

  • 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. Editorial Team
    Editorial Team
    2026-06-14T17:35:21+00:00Added an answer on June 14, 2026 at 5:35 pm

    In C# you can use User or Application Settings. The user settings are different per user while with the application settings you can set one value for all users. To set initial Values you have an editor or you can write XML directly:

    <setting name="HelloText" serializeAs="String">
       <value>This is the setting value</value>
    </setting>
    

    To get the value in your code you can write this:

    this.Text = Properties.Settings.Default.HelloText;
    

    On this MSDN-Tutorial you find all you need to start with Settings in C#.

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

Sidebar

Related Questions

Is it possible to make use of Android multicore CPU? I'm thinking about something
I am thinking about something like this: public static <T extends Comparable<T>> T minOf(T...ts){
I think I know C++ reasonably well and I am thinking about implementing something
Here's something I've been thinking about: suppose you have a number, x, that can
I am thinking about build a online store for my wife to sale something.
I'm just thinking about the styling and performance. Previously I used to write something
I am looking for some input on something I have been thinking about for
I'm just wondering what are you thinking about DIV-tag inside FORM-tag? I need something
I wonder if you could help me with something I've been thinking about. Say
Possible Duplicate: Short hand to do something like: if($variable == 1 || $variable ==

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.