kacor
asked on
D5 Hidden form
There is a hidden form which can't see the user. If the program is closed in the Task Manager, neither the OnClose, nor the OnDestroy event will run for this hidden form. How would be possible to use this events in this case too?
Thanks for your help
Janos
Thanks for your help
Janos
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Could you write your own system messagae handler in your application. and try and catch the call to the program from windows?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This thread could be useful too
https://www.experts-exchange.com/questions/20791001/Program-Onclosing.html
https://www.experts-exchange.com/questions/20791001/Program-Onclosing.html
ASKER
thanks mikelittlewood
ASKER
Hi mikelittlewood and vadim_te,
ad first link:
A part of the hiddening works right on NT4WS, W2kProf and Win XP Prof
ad second link:
html must you use on the end to have the rigth link :-)
Using D5 the WMQueryEndSession gives an error message "Unstatisfied forward or external declaration"
I can hide my prog from the task bar, I can handle the the normal closing event and machine restarting event. The only event I can't handle is the closing event from the task manager.
Thanks for your help!
with best regards
Janos
ad first link:
A part of the hiddening works right on NT4WS, W2kProf and Win XP Prof
ad second link:
html must you use on the end to have the rigth link :-)
Using D5 the WMQueryEndSession gives an error message "Unstatisfied forward or external declaration"
I can hide my prog from the task bar, I can handle the the normal closing event and machine restarting event. The only event I can't handle is the closing event from the task manager.
Thanks for your help!
with best regards
Janos
ASKER