Managed Alternative to user32.dll FlashWindow

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?

+3
source share
2 answers

, , , .

, , , .

, - , .
, , :

, OS X - ( , don ' t this). , cocoa #.

Linux , , , , .

+3

, . , , , , FlashWindow.

  • . / , .

  • (/) . , , , .

  • ShowInTaskbar, false 0. , . , , .

: , -Windows-, .

+2

Source: https://habr.com/ru/post/1713631/


All Articles