Unloaded Form

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Unloaded Form

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:18 pm

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

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Unloaded Form

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:18 pm

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.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 16 guests

cron