Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to save/restore a form and controls between program runs?

I have a complex form to allow the user to configure my app.

What's the best way to save the form state & reload when the program next runs.

I mean text he has entered in list boxes, the selected item of combo/list/radio, whether a checkbox is cheeked, etc

like image 452
Mawg says reinstate Monica Avatar asked Jul 07 '10 02:07

Mawg says reinstate Monica


1 Answers

Lots of people here telling me when to save, but not many telling me how ...

In the end I went with WritePrivateProfileString()

like image 180
Mawg says reinstate Monica Avatar answered Nov 15 '22 05:11

Mawg says reinstate Monica