Moises,
Clicking the 'upper right X' causes the form's QueryUnload to fire and then the form to release. A button must call the QueryUnload method explicitly before the Thisform.Release command.
HTH
Barbara
>I did a test with a blank form to see which methods come first
>I've put a messagebox() into all methods
>then I find out the following:
>when entering the FORM
>LOAD
>INIT
>SHOW
>ACTIVATE
>REFRESH
>GOTFOCUS
>
>leaving the form:
>DESTROY
>UNLOAD
>
> but I noticed that the method RELEASE is not executed unless I create a button with command : thisform.release
>does anyone know the difference between leaving by button
>or clicking the rigth corner ?