I would be interested in an answer as well as I have the same problem. In my case the form does hide if I don't change the focus to any other window or application. If a user minimizes the application while the form is visible, then the Hide has not taken effect when restoring the application.
I've tried Application.ProcessMessages and this seems to help but has not solved it completely. Ross. ----- Original Message ----- From: "Rainer von Saleski" <[EMAIL PROTECTED]> To: "Borland's Delphi Discussion List" <[email protected]> Sent: Monday, October 17, 2005 9:24 PM Subject: Form won't hide (sometimes) When a unit finishes its work, I want the form to disappear and I want to display a message to let the user know how things went. So I've tried the obvious: Backup.Hide; if NoErrors then ShowMessage ('Backup Completed OK') else ShowMessage ('*** BACKUP FAILED ***'); My problem is that this works as expected when run from the Delphi 7 development environment ... but when run from the executable file, the form does not disappear, and the ShowMessage box is displayed BEHIND the Backup form (which is supposed to be hidden). And, yes, the focus has moved to the message box (which confuses everyone, because it can't be seen). So ... what magic invocation do I need to make the Hide actually take effect? Thanks, Rainer _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

