Windows 7 / 8 stop modal dialogue flash on parent focus

All we need is an easy explanation of the problem, so here it is.

Is there some setting in Windows where I can change the default behavior that causes the border and title of a modal dialogue box to flash like 6 or 7 times when I click on the parent window?

Simply focusing it would be plenty to let me know what I did was wrong.

I don’t feel the need for all the sirens and bull horns and strobe lights to let me know I clicked in the wrong place.

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

Solution

  1. Press Win+R, type or paste regedit.exe in the text box, and press Enter.

  2. Navigate to the following registry key:

    HKEY_CURRENT_USER\Control Panel\Desktop
    
  3. Locate the ForegroundFlashCount value, and set it to 1.

    Note In case the value is missing, create a new DWORD (32-bit) value. While you could set it to 0, that would prevent modal dialog boxes from properly regaining focus.

  4. Log off and log back on to apply the changes.

Additional information

The ForegroundFlashCount registry value was first introduced with Windows 2000. Here’s an excerpt from the original documentation:

Specifies the number of times the taskbar button flashes to notify the user that the system has activated a background window.

Source: ForegroundFlashCount

In Windows Vista and earlier the value was set to 3 by default. Starting with Windows 7, the default value is 7. Although it doesn’t seem to be specified anywhere, the same value also controls the way modal dialog boxes flash when you try to shift the focus to their parent windows.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply