procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: Boolean); begin // на крайняк - CanClose := True; Application.Terminate; end;