Hello,
In Delphi 2006, I'm trying to write a routine to "automatically minimize the application after n minutes of inactivity".
Before minimizing the application, I need all modal forms to be closed. My problem here: how can I be sure that closing the modal forms is done in a silent way?
Typically, If there's a FormCloseQuery-Handler asking some "are you sure?" questiondialogs, the form won't be closed, causing trouble when re-maximizing the application (-> lockup because the modal form has the focus, but is invisible).
I've added the code snippet I use in the main form to abort all modal forms.
I need a more robust solution, any help is appreciated.
Thanks, Daniel