1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

How To Prevent Programs From Stealing Focus in Windows


When programs start stealing focus, they "pop up" in front of the window that you're currently viewing. A default setting in Windows prevents this from happening. If programs are stealing focus from your current window then this setting has been changed.

Follow the instructions below to stop this from happening for good.

Note: Changes to the Windows Registry are made in these steps. Take great care in making only the changes described below. I recommend that you backup the registry keys you're modifying in these steps as an extra precaution.

Difficulty: Average

Time Required: Preventing programs from stealing focus usually takes less than 15 minutes.

Here's How:

  1. Click on Start and then Run.

  2. In the text box in the Run window, type regedit and click OK. This will open the Registry Editor program.

  3. Locate the HKEY_CURRENT_USER folder under My Computer and click on the (+) sign next the folder name to expand the folder.

  4. Continue to expand folders until you reach the HKEY_CURRENT_USER\Control Panel registry key.

  5. Select the Desktop key under Control Panel.

  6. On the right-hand side of the screen, locate and double-click on the ForegroundLockTimeout DWORD.

  7. In the Edit DWORD Value window that appears, set the Value data: field to 30d40.

    Note: Make sure the Base option is set to Hexadecimal when entering the DWORD value.

  8. Click OK and then close Registry Editor.

  9. Reboot your PC for the changes you made to take effect.

  10. From this point forward, programs should no longer steal the focus from the window that you're currently working in.


  1. If you're not comfortable making manual changes to registry keys there is another option. You can also prevent focus stealing using the Tweak UI tool. If the registry makes you nervous, this is a great alternative solution to preventing programs from stealing focus.

Related Video
Install an IDE Hard Drive

©2014 About.com. All rights reserved.