Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How come the release even doesn't fire when I press the
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00403767
Message ID:
00403860
Views:
12
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
Previous
Reply
Map
View

Click here to load this message in the networking platform