### Cancel closing Application

Use the CloseRequest Event to handle closing of an application.
`Sub MainForm_CloseRequest (EventData As Event)
If fx.Msgbox2(MainForm, "Do you want to close this application", "", "Yes", "", "No", fx.MSGBOX_CONFIRMATION) <> fx.DialogResponse.POSITIVE Then
EventData.Consume
End If
End Sub`
Requires minimum B4J v4.20.

Changed: , Category: Application, File: T6C159M1141.htm, ID: 1141