Preventing Applications from Stealing the Focus
June 25th, 2004 . by AliTo prevent applications from stealing the focus from the window you are working
1. Run Regedit
2. Go to HKEY_CURRENT_USER\Control Panel\Desktop
3. Edit the key ForegroundLockTimeout
4. Give it a value of 00030d40

Hey thanks for the tip. I hate it when that happens