There is a message reminder in QQ, that is, when you chat with friends, and the form is not active, if the other party sends a message, then this form will change in the task bar. It became blue, and in flashing, this is convenient to remind you to see the other party's message, in fact, this function can be implemented in C #.
The specific method is as follows:
First, declare the API function FlashWindow
[System.Runtime.InteropServices.dllimport ("User32")] Private Static Extern long flashwindow (long hwnd, long binvert);
HWnd is a window handle that needs to be reminded, binvert is non-zero means switching window titles; zero return to the initial state
The calling method is as follows:
FlashWindow (this.handle.Toint64 (), 0);
Figure: