Hi @Peter Reilly , Welcome to Microsoft Q&A,
Windows.Storage.ApplicationData is not suitable for use in Winforms.
If you just want to read and configure the application at startup, you can use xml or Properties.Settings (.NET built-in function), both of which are good choices.
In VS Solution Explorer, find Properties → Settings.settings, add keys such as MaxGridSize
, MinGridSize
, and set default values.
You can call it directly in the program like this:
MaxGridSize = Properties.Settings.Default.MaxGridSize;
Properties.Settings.Default.MaxGridSize = 100;
Properties.Settings.Default.Save();
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.