Nigel,
Look up the topic Yield and Sleep in infoviewer.
>I am having trouble making my programs windows-aware. What I mean is that I have some programs that do a lot of disk scanning, etc. and the form cannot be used during program execution. If I open another app (on top of my form) then close it, my OnActivate event does not fire and my form does not refresh. Do I need to manually check during my program execution??? Is there any compilation setting I can use to make my programs more friendly??? Any ideas? I have a number of apps which look untidy and would like to solve this before I start any major apps in C.