public static void StopFlashWindow(Form window) { if (window == null) { throw new ArgumentNullException(nameof(window), "Error: Illegal window!"); } var hWnd = window.Handle; FlashWindowHelper.StopFlash(hWnd); }
public static void FlashTaskbarButton(Form window, int count) { if (window == null) { throw new ArgumentNullException(nameof(window), "Error: Illegal window!"); } if (count < 0) { throw new ArgumentOutOfRangeException(nameof(count), "Error: count cannot be a negative number!"); } var hWnd = window.Handle; FlashWindowHelper.FlashTaskbarButton(hWnd, (uint)count); }