>>How are you determining that the Container's Destroy is not being executed?
>
>
>I have written wait wind and also message box, which is not executing.
>Take one form, paste one page object and on page paste one container. On that container's destroy event i have written wait wind 'container destroy'. but when we close the form, that wait window message doesnt shows at all.
>Hope this will clear my question.
>
>Regards
Amit,
I created a form, placed a pageframe in it, placed a container in the page and wrote wait window in the container's destroy event. I ran the form and used the X close box to close it and I got the wait window.
How are you closing the form? How are you creating the form? Have you used the debugger to see if the form was actually destroyed or not?
The only way I know of that the container's destroy would not fire is if something stopped the form from being released from memory.