C# - How to save user settings

  Рет қаралды 112,419

Coffee Cup Dev

Coffee Cup Dev

Күн бұрын

Instead of working with custom INI files save user settings using the .Net Framework by Fabio Scopel
Join our Discord server to continue the conversation and ask questions:
/ discord

Пікірлер: 135
@davitberishvili8062
@davitberishvili8062 2 жыл бұрын
This example is really very helpful, simply and shortly is described what I vas looking for. Thank you and good luck
@jonasvillanueva3942
@jonasvillanueva3942 7 ай бұрын
Im saving using notepad but i searched a video for saving i decided to to do what it was in this video and it work fine. this is helpful than saving in a notepad because i can only access the notepad on my current cumputer but i cannot access it in other cumputer. That is why im your new Subcriber.. I Like Subcribe And turn the notification Thanks Alot for this video you deserve more Subs!
@salman.akhtarm
@salman.akhtarm 2 жыл бұрын
This was very close to my requirement & was very helpful.
@VikneshwarSatya
@VikneshwarSatya 11 жыл бұрын
Thanks Fabio for this amazing work. Keep it up buddy.
@fengshengteoh3054
@fengshengteoh3054 3 жыл бұрын
this is truly helpful for me, thank you so much
@xaviercomelli
@xaviercomelli 6 жыл бұрын
Just what I needed... thanks for the tutorial!
@michalcejpek482
@michalcejpek482 7 жыл бұрын
Thank you very much :)... That's really improve my programme :)
@Omarhi51llarious4tsxdl1l
@Omarhi51llarious4tsxdl1l 4 жыл бұрын
Great work. Keep it up
@Coffeecupdev
@Coffeecupdev 3 жыл бұрын
Join our Discord server to continue the conversation and ask questions: discord.gg/T3sMnxY
@innoconnecttech
@innoconnecttech Жыл бұрын
thanks a lot , it's helpful in 2022
@Jet-Pack
@Jet-Pack 12 жыл бұрын
Thanks for this brief and informative tutorial!
@xNiikoo
@xNiikoo 9 жыл бұрын
Thanks for that easy tutorial ! it helped me a lot !! i now use this method for saving the user credentials !!! :D
@ivodonckers25
@ivodonckers25 8 жыл бұрын
Nice short tutorial, helps me further on my project !
@VDani16
@VDani16 3 жыл бұрын
Thank you very much! Exactly what I needed for my game I coded.
@glenroselle5054
@glenroselle5054 7 жыл бұрын
Great job on these youtube videos! Very thought out and step by step instructions.
@ashudatt
@ashudatt 7 жыл бұрын
thank you Fabio....it very very helpful for me..thank you soo much.. keep sharing good stuff....
@ZeusCheats
@ZeusCheats 3 жыл бұрын
Thx man, you helped me a lot.
@per19963
@per19963 4 жыл бұрын
Thank you very much!
@Coffeecupdev
@Coffeecupdev 3 жыл бұрын
Join our Discord server to continue the conversation and ask questions: discord.gg/T3sMnxY
@WunderOps
@WunderOps 7 жыл бұрын
Thanks. I was stuck, and this got me started.
@q3killer
@q3killer 10 жыл бұрын
Finally so how..Tested, all works fine. Thank you man.
@AnnedolfFrankler911
@AnnedolfFrankler911 7 жыл бұрын
Great video. Thank you, it helped me a lot!
@brolmr6620
@brolmr6620 4 жыл бұрын
Thanks for the help
@Coffeecupdev
@Coffeecupdev 3 жыл бұрын
Join our Discord server to continue the conversation and ask questions: discord.gg/T3sMnxY
@wageslave101
@wageslave101 14 жыл бұрын
Thanks mate, that was awesome!
@herrabanani
@herrabanani 10 жыл бұрын
thank you, helped me a lot
@Coffeecupdev
@Coffeecupdev 10 жыл бұрын
Awesome! Thank you for watching.
@user-ym8fn3bk6l
@user-ym8fn3bk6l 8 жыл бұрын
Can you join our programming team "Programming World" ?
@domcxz8643
@domcxz8643 3 жыл бұрын
Thank you :)
@PattysLab
@PattysLab 2 жыл бұрын
Cheers!
@ubiracles
@ubiracles 9 жыл бұрын
Ok... but if I have 2 projects... like UI layer and DAL layer... how can I share the same configuration between them, for exemple, a string connection ?
@eonshade6297
@eonshade6297 3 жыл бұрын
Really cool tutorial, quite usefull.
@BaSs_HaXoR
@BaSs_HaXoR 11 жыл бұрын
Thanks a ton! :) You deserve more subs!
@mdwdyx
@mdwdyx 5 жыл бұрын
Thanks!
@dangngocbinh
@dangngocbinh 13 жыл бұрын
thanks for your tutorial, It's useful!
@yairmagen1750
@yairmagen1750 4 жыл бұрын
Thats awesome tysm!!!!!
@Coffeecupdev
@Coffeecupdev 3 жыл бұрын
Join our Discord server to continue the conversation and ask questions: discord.gg/T3sMnxY
@TubeBazzDaBazz
@TubeBazzDaBazz 8 жыл бұрын
Not sure how I got here, but I might be using this in the future so thanks
@juanpablotorres3522
@juanpablotorres3522 6 жыл бұрын
Genius! Thanks!
@juanpablotorres3522
@juanpablotorres3522 6 жыл бұрын
Buddy, one Question! What about if my default value is an integer ??? I mean , my var is an integer and i should read this value to the textbox and save in the default settings...
@romanagrimm1
@romanagrimm1 7 жыл бұрын
thank you very much, it was really easy to understand and helpfull.
@lesinat
@lesinat 8 жыл бұрын
dude.. really helpful. thanks a bunch!
@GlobipediMovies
@GlobipediMovies 3 жыл бұрын
Thanks.
@vautek
@vautek 5 жыл бұрын
Great work fine I have been trying to add a checkBox i have not been able to save it I have tried in settings changing the type to bool also any help would be appreciated
@muhammedrishadk1618
@muhammedrishadk1618 8 жыл бұрын
really i dnt know how to tell thanks for thiss....its really nice....
@actyon20
@actyon20 4 жыл бұрын
Thank you good sir! :)
@Coffeecupdev
@Coffeecupdev 3 жыл бұрын
Join our Discord server to continue the conversation and ask questions: discord.gg/T3sMnxY
@yahyahoush313
@yahyahoush313 7 жыл бұрын
Thank You, You are the best!!!!!!!!
@martinqmtakacs4145
@martinqmtakacs4145 2 жыл бұрын
Hi, thanks for this video. I have a question about it. Is possible to save more information, like in excel tab? There will be a button to create new rows and when someone fill some row and save with savebutton, there will be that information after new open that form. How to do it? Thank you much.
@C0ldWarrior
@C0ldWarrior 8 жыл бұрын
Very nice, thanx for this! ;)
@etowadi
@etowadi 13 жыл бұрын
nice tutorials mehn...do you have any thing on XML user settings ....u the best man....keep it up
@MonderMurshed
@MonderMurshed Жыл бұрын
I love u bro!
@jugalrajeshbhaishah1528
@jugalrajeshbhaishah1528 3 жыл бұрын
Very Much helpful Bro ]
@matyhovidea8537
@matyhovidea8537 6 жыл бұрын
You helped me alot :) Thanks :)
@konligjze2003
@konligjze2003 5 жыл бұрын
So Helpful, thanks
@MJ12GRAVITON
@MJ12GRAVITON 8 жыл бұрын
Thanks!, I like your channel.
@halotyler3
@halotyler3 14 жыл бұрын
Good tutorial please post more.
@hristomirchev4026
@hristomirchev4026 4 жыл бұрын
Awesome tutorial but I can't understand how to move the config file in different location?
@Coffeecupdev
@Coffeecupdev 3 жыл бұрын
Join our Discord server to continue the conversation and ask questions: discord.gg/T3sMnxY
@arunkumar-ny1qc
@arunkumar-ny1qc Жыл бұрын
Really Great
@MxWintersAFOL
@MxWintersAFOL 8 жыл бұрын
Awesome, Thanks a million :D
@MrInstigVtor
@MrInstigVtor 5 жыл бұрын
EXCELENT TUTORIAL !
@DiyintheGhetto
@DiyintheGhetto Жыл бұрын
Hello, How do I add a checkbox to the project? If its checked then it saves the information when the button is click. And if not checked then the settings in the properties will be blank so if they click on save and reopen the program it be blank.
@felipefurlaneto18
@felipefurlaneto18 3 жыл бұрын
U saved me
@pangsoradepo7205
@pangsoradepo7205 8 жыл бұрын
Thanks for you video :)
@fpscreatorfan
@fpscreatorfan 14 жыл бұрын
Thanks for the tutorial. Im working on a calendar type program, and i have one form that creates a contact, and a form that creates a meeting. When these are created, they come in listboxes. Do you know how to save these listboxes?
@SimBoter
@SimBoter 10 жыл бұрын
very very nice
@nobodypersonsomeone
@nobodypersonsomeone 14 жыл бұрын
Very helpful! Thanks
@IbrahimGuleryuz34
@IbrahimGuleryuz34 9 жыл бұрын
Hello Fabio,thank you for share your videos.ı want to ask question,ı have project and when ı will be in the form and ı will close application then ı will open my applicaiton again ı want to take my last form.how can ı do this?For example;if ı have form1,form2.. and ı m in the form2 close application and open back ı wanna see form2 .how can ı do this?
@cafeine
@cafeine 11 жыл бұрын
thankssss.. very nice tutorial.
@nicooo3994
@nicooo3994 5 жыл бұрын
Perfect, thanks
@oxodrive
@oxodrive 5 жыл бұрын
*_-AWESOME-_*
@user-lg4hs8ik6u
@user-lg4hs8ik6u 8 жыл бұрын
Hello, Fabio. Im newbie in C#. I want to ask. I write game and there is user records like amount of wins, lose and draw. It's variables. How can i do so, if those variable changed during game i need write to them new amounts and they must be shown on the next game start?
@carson825
@carson825 8 жыл бұрын
every time it changes update it?
@Marcompelo
@Marcompelo 5 жыл бұрын
Excelent!
@sylviogiraldes
@sylviogiraldes 5 жыл бұрын
Fabio, onde essa informacao fica armazenada ?
@scrypto
@scrypto 9 жыл бұрын
Thank you very much! I'll make this video on Russian )
@MrAnderson342
@MrAnderson342 12 жыл бұрын
Hi, I've got this to work, but I can't get it to work for numericUpDown. Is there any way to do this?
@MrAnderson342
@MrAnderson342 12 жыл бұрын
This works, but is there a way to save numericUpDown like this too?
@haneulchu8932
@haneulchu8932 8 жыл бұрын
Thank you!!!
@TheMetroFarmer
@TheMetroFarmer 11 жыл бұрын
this is great. thx.
@kozh4390
@kozh4390 2 жыл бұрын
thanks
@glute
@glute 5 жыл бұрын
YES! THANO YOU SO MUCH OMFH
@kalilokaliloi4395
@kalilokaliloi4395 9 жыл бұрын
Thank you
@j3st-87
@j3st-87 11 жыл бұрын
Thanks man!!! :D
@aaart1713
@aaart1713 Жыл бұрын
How do I save an image?
@imlipongen6068
@imlipongen6068 12 жыл бұрын
thanks its great..... can you add some more vidio about how to add product key ....
@norbertvarga2729
@norbertvarga2729 7 жыл бұрын
Thanks Bro,
@shybester
@shybester 4 жыл бұрын
Making a blacklist system that blacklists forever unless reinstalled. Hope it works
@Coffeecupdev
@Coffeecupdev 3 жыл бұрын
Join our Discord server to continue the conversation and ask questions: discord.gg/T3sMnxY
@logicchild
@logicchild 12 жыл бұрын
try to change the type of the setting not to String, try the Int32 or Double.
@zazazautashvili7982
@zazazautashvili7982 10 жыл бұрын
Non-invocable member 'SaveUserSettings.Properties.Settings.Default' cannot be used like a method... :(
@AdrianGomez-gn7ig
@AdrianGomez-gn7ig 9 жыл бұрын
Love ya♥
@croppable
@croppable 6 жыл бұрын
How do you do it like open a different form...
@stevefrt9495
@stevefrt9495 6 жыл бұрын
Thanks you
@JarppaGuru
@JarppaGuru 9 жыл бұрын
Where these settings are stored? if i delete application will settings still some where on my computer like in registery?
@tedtedson2241
@tedtedson2241 9 жыл бұрын
Yes, in appdata folder
@Omarhi51llarious4tsxdl1l
@Omarhi51llarious4tsxdl1l 3 жыл бұрын
How to Save User Settings from Child Class?
@Emily-zw9ps
@Emily-zw9ps 7 жыл бұрын
how to set dictionary in settings?
@concernedcitizen5220
@concernedcitizen5220 7 жыл бұрын
is the user settings saved in an xml file? what file is it saved in?
@helios8369
@helios8369 7 жыл бұрын
Yes the information is stored in an xml file type. The location of the user.config file is %userprofile%\AppData\Local or %userprofile%\Local Settings\Application Data And search for your application name
@marceloxavier1044
@marceloxavier1044 9 жыл бұрын
Thank you...
@minaamir2648
@minaamir2648 7 жыл бұрын
thanx
@dante2047
@dante2047 6 жыл бұрын
Can you also show how to save user credentials such as user name and password
@oyopelao
@oyopelao 10 жыл бұрын
how can you refresh your form automatically so that you dont have to exit to see the changes?
@KareZArtS
@KareZArtS 10 жыл бұрын
Write a Refresh Method. In this case: protected void Refresh() { button1.text = Settings.Default["Button"].ToString(); this.text = Settings.Default["Title"].ToString(); }
@donstart4363
@donstart4363 9 жыл бұрын
Kare'Z Art'S i tried to put protected void refresh() like you did but it give me error ; expected
@ricyalol
@ricyalol 3 жыл бұрын
@@donstart4363 just add a ; at the end
@fakename457
@fakename457 5 жыл бұрын
This is the kind of stuff that should make it into textbooks! But it doesn't...
@afonsosalbrecht
@afonsosalbrecht 5 жыл бұрын
Do you speak portuguese? brazilian portuguese? you sound like a brazilian
@Coffeecupdev
@Coffeecupdev 5 жыл бұрын
Yes, I do. :)
@Coffeecupdev
@Coffeecupdev 5 жыл бұрын
@@afonsosalbrecht thx thx! :)
@rl7_slimkat
@rl7_slimkat 2 жыл бұрын
Hey look guys its toni cipriani from gta lc
@Perevozych
@Perevozych 7 жыл бұрын
How to change the directory of the settings file
@helios8369
@helios8369 7 жыл бұрын
You can't. You can save information in a text file in temp folder for example. And read it whenever your application needs access to user data. Or save information in windows registry. And you can retrieve it with ease.
@alitauseef9423
@alitauseef9423 6 жыл бұрын
savingusersettings namespace not found any help
@Muhammed.Adiguzel
@Muhammed.Adiguzel 6 жыл бұрын
projectname.Properties ;)
@LorenKuich76
@LorenKuich76 11 жыл бұрын
This guy kinda looks like Omni... -_-
@yah9011
@yah9011 4 жыл бұрын
But what is saved is not displayed in the settings window of the studio itself. Dislike for wasted time.
@Coffeecupdev
@Coffeecupdev 3 жыл бұрын
Join our Discord server to continue the conversation and ask questions: discord.gg/T3sMnxY
@Pinkcommando1
@Pinkcommando1 8 жыл бұрын
whelp I am a dummy, cheers
C# - How to create a class, objects and add members to the class.
6:39
When you discover a family secret
00:59
im_siowei
Рет қаралды 36 МЛН
Violet Beauregarde Doll🫐
00:58
PIRANKA
Рет қаралды 53 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 53 МЛН
Creating Reports in C# - Part 2 of 2
3:40
Coffee Cup Dev
Рет қаралды 109 М.
How to SAVE SETTINGS in Visual Studio C#
11:20
The Amazing Codeverse
Рет қаралды 12 М.
C# Tutorial - How to save user settings
11:11
Fox Learn
Рет қаралды 13 М.
Cursor Is Beating VS Code (...by forking it)
18:00
Theo - t3․gg
Рет қаралды 94 М.
C# Tutorial -  TCP/IP Client Server | FoxLearn
10:12
Fox Learn
Рет қаралды 397 М.
C# Tutorial - Dynamically Loading User Control | FoxLearn
7:28
Fox Learn
Рет қаралды 121 М.
BEST Way to SEND DATA between Multiple Forms | C# Windows Form
6:25
The Amazing Codeverse
Рет қаралды 170 М.
How to Create Setup.exe in Visual Studio 2019 | FoxLearn
7:04
Fox Learn
Рет қаралды 606 М.
When you discover a family secret
00:59
im_siowei
Рет қаралды 36 МЛН