No video

C# App Saving and Reloading with .NET ConfigurationManager (XML config files)

  Рет қаралды 2,399

Code With Huw

Code With Huw

Күн бұрын

How can you save your application and start it up later in exactly the same state as when you last used it? With its window in the same position, having the same size and with the last used document automatically reloaded? The simple solution is to use the .NET ConfigurationManager.
The ConfigurationManager gives you an easy way to write application settings into an XML file. If you had to write all the XML entries yourself, this process might be quite difficult and error-prone. The ConfigurationManager simplifies this. I show how to use the ConfigurationManager in C# in this lesson.
For more C# Programming Projects, see this Playlist: • C# Programming Projects
Huw Collingbourne is author of numerous books on programming C, C#, Java, Ruby, Delphi and Object Pascal, pointers, recursion and programming adventure games. Find them all on Amazon.
To learn C# quickly, Huw’s book, available in paperback or for Kindle, is the perfect complement to these KZbin lessons.
The Little Book Of C# Programming (Amazon US): amzn.to/2JWDI0o
The Little Book Of C# Programming (Amazon UK): amzn.to/2YaCPtS
Keep in Touch
==============================
Subscribe to the Code With Huw KZbin channel: www.youtube.co...
Code With Huw on Facebook:
/ codewithhuw

Пікірлер: 6
@Mabh838
@Mabh838 6 ай бұрын
Thank you for explaining in short ,simple way
@LearnWithHuw
@LearnWithHuw 6 ай бұрын
Glad to help.
@rayt6867
@rayt6867 Жыл бұрын
Hello Huw, Thanks to you, I have created 4 shortcuts, one for Office, Utilities, System and Printer apps, but I just thought about creating on launcher app with tabs to have just one app instead of 4. Also to minimize to the system tray. Wow! it getting to be a nice all around app. Thank you very much. You have very nice dogs!
@LearnWithHuw
@LearnWithHuw Жыл бұрын
I'm glad you found it useful. Yes, there are lots of ways in which this simple application can be expanded to make it more useful. It sounds like you are making good progress! (Thanks for the comment about my dogs. I love them dearly. And they drag me away from the keyboard regularly to take them for walks - which helps to keep me sane!)
@09harikesh
@09harikesh 8 ай бұрын
How to update node attributes present in custom config section from c#.
@shaihulud4515
@shaihulud4515 8 ай бұрын
Is this the same approach when using wpf and mvvm?
Program a C# Web Page Launcher
6:59
Code With Huw
Рет қаралды 341
The ONE Thing Most C Programmers Get Wrong!
11:02
Code With Huw
Рет қаралды 31 М.
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 15 МЛН
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 92 МЛН
а ты любишь париться?
00:41
KATYA KLON LIFE
Рет қаралды 3,5 МЛН
Алексей Щербаков разнес ВДВшников
00:47
How to Store and Retrieve Setting  In WPF
28:05
Tactic Devs
Рет қаралды 11 М.
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 349 М.
Refactor Your App to The MVVM Community Toolkit (feat. WPF!)
30:34
SingletonSean
Рет қаралды 10 М.
Namespace and Assembly in C# - Where is the difference?
8:46
tutorialsEU
Рет қаралды 7 М.
microsoft doubles down on recording your screen
10:00
Low Level Learning
Рет қаралды 38 М.
Learn Pascal Programming - Designing and Coding With Lazarus
7:39
Code With Huw
Рет қаралды 3,5 М.
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 15 МЛН