Jump to content

How to allow user to save settings for Windows form?

- - - - -

  • Please log in to reply
3 replies to this topic

#1
gacanepa

gacanepa

    Newbie

  • Members
  • PipPip
  • 19 posts
Hi there everyone!
I think the title of this thread is pretty straightforward and self-explaining. I want to allow an user to change and save simple settings for a Windows form, i.e., change its caption text, the text on a label, or its color. Any ideas on how to do it?
I'm a C# newbie, so any suggestions will be greatly appreciated!

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
You can write the settings to file, or to the registry, and load them when you launch the program again.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
C# has a built in way to work with settings, just use some textBoxs or something to get the information then use this tutorial so save it, and reload it.
Hope that helps ~ Committed.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#4
gacanepa

gacanepa

    Newbie

  • Members
  • PipPip
  • 19 posts

CommittedC0der said:

C# has a built in way to work with settings, just use some textBoxs or something to get the information then use this tutorial so save it, and reload it.
Hope that helps ~ Committed.
Thanks a lot Committed! That was exactly what I was looking for. In the meanwhile, I found some work arounds to save settings using the registry, but this is far more useful considering I'm a beginner.
Have a great day and thanks again!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users