Judy,
I had this problem years ago and I have completely forgotten...
It seems that task manager 'kills' the application, that means
that the form never receives the QueryUnload event (the same
as for the 'end' statement). At least in NT and W2K. Why MSDN enumerates
the vbAppTaskManager is a wonder, but because I did not need that
test anymore (we set up logins with low priority, like disable the
task manager) I did not investigated this any further.
Sorry for that.
Marco
> Marco
I> have found that even checking how the task is being terminated through
t> he quereyunload will not prevent it from being terminated with the task
m> anager. Cancelling the unload just makes the task not responding
message
t> o be displayed. Am I doing something wrong?
> if UnloadMode=vbAppTaskManager then cancel=1
> Thanks for the input.
> Judy