Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

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 Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date