Link to home
Start Free TrialLog in
Avatar of kacor
kacorFlag for Hungary

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
SOLUTION
Avatar of vadim_ti
vadim_ti

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kacor

ASKER

thanks vadim
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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kacor

ASKER

thanks mikelittlewood
Avatar of kacor

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