M-Files UI Extensibility Framework
OnCloseWindow Event
M-Files UI Extensibility Framework > Events > OnCloseWindow Event
Sent for a window when the window is requested to closed.
Return Type


Return false to cancel the window closing.


The event is not sent when the window destruction is inevidable, or when the parent window gets destroyed. This can happen, for example, because of logout or system shutdown.

Supported in M-Files 9.0.3372.6 and newer.