You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Fired just before the parent form closes.

Parameters

None

Remarks

The OnParentClosing event fires just before the parent form (the form containing the Panel control) closes. This allows you to clean up anything before the window actually closes. For example, you could call RemoveForm to make sure everything is cleanly shutdown, since embedded forms can occasionally cause problems since OI assumes their not children of other OI forms.

If you want to stop the parent from closing, then you must set the Cancel property to 1 during this event. This will only work if you qualify this event synchronously.

See Also

CancelRemoveForm

  • No labels