Рет қаралды 2,399
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