Closing a form and and save settings and clean up items

Posted by PeterWokke on 22-Sep-2014 09:42

In the destructor of a form I would run some methods to save settings and clean up running procedures.

Only the form is shut down before these method finished.

Some tell me it could be set on un override dispose or close method.

Only those cannot been override.

Is there a common method I could handle this problem?

Kind regards,

Peter Wokke 

All Replies

Posted by Mike Fechner on 22-Sep-2014 10:23

We are doing this in the OnFormClosing override after the SUPER:OnFormClosing when e:Cancel NE TRUE .

Posted by PeterWokke on 23-Sep-2014 03:42

Hi Mike,

Thanks for the tip. It works nicely.

Kind regards,


This thread is closed