public static void FlashForm(Form form) { IntPtr hWnd = form.Handle; SafeNativeMethods.FlashWindow(hWnd, false); SafeNativeMethods.FlashWindow(hWnd, false); GC.KeepAlive(form); }