1 Attachment(s)
Saving GLOBAL Application settings
This tutorial is in response to a thread posted here.
The attached project has 2 forms with settings on each. The second form has a list to which you can add as many settings groups as you like.
The settings data is automatically serialised to settings.dat in the exe directory.
Try it for yourself:
Compile and run the program, change some settings, then close and restart the program. The changes will be retained!
UPDATE!!! COMBOBOX FIXED :D
If you find this useful why not gimme a rating? :)
Re: Saving GLOBAL Application settings
This can also be used as a binary serialization example.
Re: Saving GLOBAL Application settings
Re: Saving GLOBAL Application settings
Yes. It's great.
I appreciate you taking the time to post this sample. I've learned a lot from it.
Thanks!
Re: Saving GLOBAL Application settings
Re: Saving GLOBAL Application settings
I still think there are some cases where you may want to parse the whole forms ( or most of the relevant properties ). For example , I am trying to document the GUI by preserving its state . I dont know serialization with metadata and Reflection will do it or not.
Izzat