Page 1 of 1

Unloaded Form

Posted: Fri Aug 07, 2009 12:18 pm
by ConvertFromOldNGs
by torrie >> Fri, 20 Dec 2002 13:01:55 GMT

Appart from traping the exception (14037) is there anyway to tell if a form has been unloaded before a quiet point is reached? I've tried testing the hwnd property but this still appears to be a valid window using the isWindowValid API.

Any other ideas?

Thanks

Torrie

Re: Unloaded Form

Posted: Fri Aug 07, 2009 12:18 pm
by ConvertFromOldNGs
by cnw/cnwsb1 >> Fri, 20 Dec 2002 19:32:28 GMT

Hi Torrie. One way of doing this is to add a boolean attribute to your main Form subclass, called something like "isFormUnloading". Set this
to true as the first step of your unload() method.

- Cheers, Simon.