[System.Runtime.InteropServices.DllImport("user32.dll")] private static extern bool FlashWindow(IntPtr hwnd, bool bInvert); public static void FlashWindow(System.Windows.Forms.Form form, bool invert) { FlashWindow(form.Handle, invert); }