Reputation: 20234
I want to make my Windows Form (System.Windows.Forms.Form
) "stateful" - that is, it (or the fields therein) should keep the data I entered, also if I close and reopen the application, if possible even when the application breaks (uncaught exception).
What is the easiest way to implement this? Is there some support for this out of the box (possibly without writing a single line of code) or will I have to implement such a function myself?
Upvotes: 1
Views: 137
Reputation: 4408
Use Application settings. You can bind properties of WinForms controls to the settings using forms designer. Settings can be stored on per user or per application basis.
Upvotes: 2