Click here to Skip to main content
16,018,158 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am designing a windows form calculator and I don't know how to go about this property.
The ability to start or open with the last choosen view - standard, scientific, basic, etc.
Or still, the ability of a windows form application to open minimized because it was lastly closed minimized and to open maximized because it was lastly closed maximized.
Please help.
Thank you!
Posted

you can save these settings on form closing and load then again when your application start. check below link for more information
How to record window position in WinForms application settings[^]
 
Share this answer
 
CodeProject has several articles that will teach you how to use User Settings. In my opinion using User Settings is a good strategy for cases like yours where a small number of settings need to be saved, and then used when the Application opens to configure the Application.

This article is a good practical introduction that will get you started right away: [^].

This article gives you a good overview and understanding of User Settings across various .NET platforms including Win Forms, WPF, etc. : [^].

This article provides a reusable component that you can use for persisting application settings; imho, it may be useful when you have many settings to save/restore: [^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900