I think you could use a timer with a small interval. Then, make use of the FindWindow and FindWindowEx and ShowWindow APIs to hide the form. Look these APIs up on MSDN