user18533075
user18533075

Reputation:

TextBox save value/input automatically

I would like to save a few values ​​from text boxes that should be loaded into the text boxes every time I restart my program.

However, since my customers all use different values ​​and should not re-enter them with every restart, I thought I could save these values ​​somehow. But I have no idea how to do that.

my program is also tied to a database if there is a clean way, I would choose that too. my customers all have an account to log in to. but it can also be a simple .txt or XML file, but how does that work?

I working with visual Studio C# WinForms.

Upvotes: 2

Views: 523

Answers (1)

Felix An
Felix An

Reputation: 543

Windows Forms comes with Settings, which allow you to save variable values and load them back up the next time your program is run. The Designer allows you to create settings and set the data types for them. See the Microsoft documentation in the link above for more information.

Upvotes: 2

Related Questions