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 8935391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:58:27+00:00 2026-06-15T09:58:27+00:00

What is the best practice to save user last entered values on a form

  • 0

What is the best practice to save user last entered values on a form (dialog)

I have a dialog, which I use for entering additional information when opening RAW image files, i.e. FileName, Width, Height, Depth, Header size, Pixel type, etc.

I would like the user see his or her last input (values that where saved during last successful file open) each time the dialog is opened, or some defaults when no last data exist

I could of course serialize the object that is data-bind to forms controls and then during forms load deserialize it and finally init the controls, but I see few issues here:

  1. Problem with saving the data on per user basis
  2. The manual coding that needs to be done here
  3. The serialized data are saved to file (this is not actually a problem)
  4. “versioning” the data, as the dialog may change over time (i.e. additional controls may be added or removed)

I believe that there is some common way of dealing with such requirements.
I am using .NET C# 4.0
This is a windows form application, no database

Regards,
Sebastian

  • 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-15T09:58:28+00:00Added an answer on June 15, 2026 at 9:58 am

    You can use the Settings Class that come with C# to store and retrieve these values.
    The advantage is that

    • It does not store as a flat file
    • Others cannot see the value that is stored

    Please see the link here

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

Sidebar

Related Questions

Currently, I have an application, which will save a temporary screenshot, and let user
Best practice is to use unique ivs, but what is unique? Is it unique
The best practice seems to be to use assert for a condition that should
What would be the best practice to keep the user logged in if he
What is the best practice for generating valid XML with PHP from user submitted
What is the best practice for checking in an EditText for any values before
I'm curious about the best practice in creating web services which support both XML
I have a Django form that is working fine. I'd like to save the
I have a .Net application that uses their user settings. What is the best
I want to use this jQuery-UI-sortable in a project What is the best practice

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.