I have a program that occasionally needs to scan some directories recursively (an improvement for this part of the program is in the pipeline, but won\'t be ready for a while).
...but I would prefer to activate the
function even when the user is working
with other programs on the same
computer. This way, if he switches to
another program, I could catch up on
the scanning I need to do.
Stop the scanning in Application.OnActivate and resume in Application.OnDeactivate.