FlashWindow (user32)
Last changed: 131.107.174.73

.
Summary

C# Signature:

[DllImport("user32.dll")]
static extern bool FlashWindow(IntPtr hwnd, bool bInvert);

VB.NET Signature:

<DllImport("user32.dll")> _
Private Shared Function FlashWindow(hwnd As IntPtr, bInvert As Boolean) As Boolean
End Function

User-Defined Types:

None.

Notes:

Flashes the taskbar button of the window once to get the user's attention. This only happens if bInvert is true.

Tips & Tricks:

Please add some!

Sample Code:

    [DllImport("user32.dll")]
    private static extern bool FlashWindow(IntPtr hwnd, bool bInvert);

    public static void FlashWindow(System.Windows.Forms.Form window)
    {
        FlashWindow(window.Handle, false);
    }

Documentation
FlashWindow on MSDN

Thank You, Steven Lee