Saving Window Changes When Unloading

Saving Window Changes When Unloading

How do you save the choices when changing forms and shutting down the program. Do I have to use a module to store the changes?

If you have options in a form, put the save code in the Unload event of the form. That will be executed whenever the application is being shut down. Just make sure to 1) use Unload Me on the main form to shut it down, and 2) do not put any End statements anywhere but at the end of the Unload event code in the main form.


Share the Post: