In the .Net application, which the title bar flashes and the corresponding taskbar button for the window, to attract the attention of users, the P / Invoke code is used:
[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);
}
How can I run the same effect without using P / Invokes? In particular, the .Net application is being updated to fully work on Linux / Mac OS X with Mono. Is there a way to build a managed equivalent of FlashWindow or FlashWindowEx?
source
share