>>You may call your code from QueryUnload. It happens before you release the form (either by button or by close in the upper corner). So you may need to call your methods from this method.
>
>QueryUnload() did not happens if you have thisform.Release() somewhere in the form.
Right.
If it's not broken, fix it until it is.
My Blog