Closing the form owner is when the form is closed by another parent form, which can close the form or the form closes when the parent form is closed.
Use the form close event to check if another form has closed the form:
private void AppMainForm_FormClosing(object sender, FormClosingEventArgs e) { if(e.CloseReason == CloseReason.FormOwnerClosing) {
Ashraf abusada
source share