title: Managed alternative to user32.dll FlashWindow
body: <p>In a .Net application that flashes the title bar and the corresponding taskbar button for a window, to attract the users' attention, P/Invoke code something like this is used:</p>
  
  <pre><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);
  }
  </code></pre>
  
  <p><strong>How can the same effect be triggered without using P/Invokes?</strong>  Specifically, the .Net application is being updated to run fully on Linux/Mac OS X with Mono. <strong>Is there any way to construct a managed equivalent to FlashWindow or FlashWindowEx?</strong></p>