StdFormClose event
Occurs before a form closes. For example, the event occurs after the user clicks [
] or [ ] ([ ]) on the [ ] menu.The event is not associated with a default handler and is for notification only.
Remarks
To close a form programmatically, you can generate the 「StdFormExitOk」 or 「StdFormExitCancel」 events.