How to save user input in C#
On request of a reader, I’ll show you today some C# basics. After I had posted a little snippet for dealing with the AppSettings, I was asked how we could now actually save user input on a GUI with help of this snippet. Here comes the solution.
For clarification, I have a created a little C# WinForms project in Visual Studio. The WinForm got a label and a textbox on it. Also the above mentioned functions for loading and storing values in the AppSettings will be used.
If you have created the project and added to the controls, your Application should look similar to the left-hand picture.
Next, you two need to add event handlers. The easiest way is via the “Events” window. (This is the one that is marked red in the […]