|
|
|
|
![]() ![]() |
May 12 2005, 09:01 PM
Post
#1
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 19 Joined: 12-May 05 Member No.: 5,018 |
What many of us do not know is that using a button on a form with the function "Unload Form1" or even clicking the X in the upper right corner is like pulling the plug out of your computer while it is still on. It may not exit the program cleanly and efficiently, may leave background processes running, or just give you unwanted errors by exiting improperly.
All you need to do is unload all components, forms, controls, etc. upon unloading. Say you have 2 forms in your project, 1 component, and 2 controls. If these ojects are placed onto a form, unload them properly! For instance- CODE Private Sub Form_Unload() Unload Form1 Unload Form2 Unload Component1 Unload Control1 Unload Control2 End Sub This will make sure that all objects are properly unloaded instead of "dumping" them when you exit the program. Hope this helped you. |
|
|
|
Jan 18 2008, 05:23 AM
Post
#2
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
Thanks for this tip. I have just finished a Clinical Database Management Software for GPs and forgot to include this feature. Now I have rectified it and thanks again
-dick.Tracy007 |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 16th October 2008 - 04:07 AM |