Support for flashing the taskbar icon to get the user's attention.
System Object CleanCode.Forms TaskbarFlasherNamespace: CleanCode.FormsAssembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
public static class TaskbarFlasher
public static class TaskbarFlasher
Public NotInheritable Class TaskbarFlasher
Public NotInheritable Class TaskbarFlasher
public ref class TaskbarFlasher abstract sealed
public ref class TaskbarFlasher abstract sealed
This class provides access to the Windows API
for flashing the program's icon on the task bar
if the application window does not have focus.
To use, simply pass your applications's
Form
to
FlashWindow(Form), as in:
TaskbarFlasher.FlashWindow(this);
TaskbarFlasher.FlashWindow(this);
Note that a call to this does not repeatedly blink--it merely
flashes once (i.e. highlights the taskbar icon) which remains
"lit" until the user gives it focus.
For more details, see
Get Current Window Handle and Caption With Windows API In C#.
Since CleanCode 0.9.07.