I managed to close the application properly with this code:
procedure TMainForm.FormClose(Sender: TObject; var Action: TCloseAction); VAR i: Integer; begin for i:= 0 to MDIChildCount-1 DO MDIChildren[0].Close; { Remove all open MDI child windows } end; But I still want to know how it should be done 'by the book' and why it crashes in 'FormResize'. __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk