469,282 Members | 2,034 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

How I Can Save My Settings in C#

Atran
319 100+
I want to save my settings after I close my form.
example: when I write in a textbox a word and I close the form and open it again see the word I was wrote it.
example2: when my form runnig, I set to clipboard a word by clicking a button from my form, so if I click PAST in a notepad I will see the word I add it to my clipboard from the form. IF I close my form, I can Past the word, the clipboard will be cleared.
So anyone know to save the form settings.
May 6 '07 #1
3 3600
kenobewan
4,871 Expert 4TB
Have you tried cookies?
May 6 '07 #2
vanc
211 Expert 100+
1. You have to save it somewhere in disk, database file, csv file or even in registry, or you can serialize all data. So next time you open form just recall it.
2. You can use Clipboard.Clear() when you exit form to clear Clipboard

cheers.
May 7 '07 #3
Atran
319 100+
I will try the ways you said. but When I said in my first message (I can Past the word, the clipboard will be cleared) i write wrong in (I can Past), but I was want this (I cant past), then (I CANT past the word,when the form closed the clipboard will be cleared)
May 7 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Sam Carleton | last post: by
3 posts views Thread by Boris Sargos | last post: by
3 posts views Thread by Stefano | last post: by
4 posts views Thread by keithb | last post: by
2 posts views Thread by John | last post: by
reply views Thread by =?Utf-8?B?Qy4gSHVnaGVz?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.