>The problem is that I need to do that when the object is Destroyed, independent of the form it is on. The control is designed for multiple use in different settings. I'd like to have it autonomously destroy itself. But it doesn't. the code in it's destroy() method never gets called when the form terminates
>
>>Tim, can you NULL the references in appropriate customControl.object and issue customControl.RemoveObject() from the form method before releasing the form, or I still don't understand what you are trying to do? :)
Oh, I see now, I thought your custom object was
outside the form.
Did you trace it starting in Form.Destroy() method? Is it possible that Form.QueryUnload returns .F. by some reasons? I just tested a sample form with custom object and everything went OK, all events were fired.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison