devxlogo

Saving Window Changes When Unloading

Saving Window Changes When Unloading

Question:
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?

Answer:
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.

devx-admin

Share the Post: