I am not sure exactly why this is so, in my mind, I remember it by thinking that the "X" kills the form before the contained objects get a chance to fire their release events.
Regardless, you can fix it by putting ThisForm.Release() in the QueryUnload event of the form.
Marty
>If the user press the X on the top-right windows, the release method doesn't fire. My forms have an exit button that execute thisform.release() to quit the form. I thought that the X would do the same ?
>
>Thanks
>Eric
Marty Smith, CSQE