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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:26:27+00:00 2026-06-02T20:26:27+00:00

I have a C# Dialog based app. I want to save the preferences/settings the

  • 0

I have a C# Dialog based app. I want to save the preferences/settings the user choose, so that I could reload them in the next run.

I am new to C#, may be this is something quite basic but I do not know.
Do I have to explicitly write them to a file like ini or something ? or is there a built in way to do that.

The kind of config data is like checkboxes selelected, numericUpDOwn, checkedListbox – checked items etc

  • 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-02T20:26:28+00:00Added an answer on June 2, 2026 at 8:26 pm

    Select the control in the designer. Scroll all the way up in the Properties window and expand (ApplicationSettings). Click the indicated button to open a dialog. Select the property whose value should be persisted (like Checked for a check box) and click New in the dropdown.

    enter image description here

    Be a bit careful, not all properties are suitable to be persisted like this. An example is the form’s Size. You don’t want to store the size when the form is minimized or maximized, that size won’t restore well. You need to do this by adding the setting in the Settings designer an only write it when the control is in the right state. In the case of Size, that’s when the Resize event runs and the WindowState is Normal.

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

Sidebar

Related Questions

I have a dialog-based app with an edit-control in it. When I minimize /
I have a dialog that I want to prevent from closing when the OK
I like to write a modeless dialog based app, but I have a problem.
I have created a Cocoa document based picture drawing application. I want that the
I have a dialog-based MFC C++ app. My dialog displays a number of pages
I have an app which uses the user's location. I have a dialog(pic below)
I'm making an app that's based on question and answers, and the answers have
I have a MFC dialog based application in which I use ::system() function to
I have to create a dialog based application, instead of old CFormView type of
I have a dialog box that allows users to set hotkeys for use in

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.