Hack,
I have a similar requirement where I am using ShellExecute to open the regsvr32.exe to unregister Dlls. This leaves the Notification Messager Window open. I want to close this and proceed. I tried this code u posted. It works fine when I trace thru the program, bringing focus to the VB App. But When i let it run by itself, the Notification Window has focus and wouldn't let the code continue to close it. Have u any suggestions? Hope I have explained myself clear here. If not, pls verify with me.

Thanks,
Jemima.