Binarysharp.MemoryManagement.Windows.WindowCore.FlashWindow C# (CSharp) Method

FlashWindow() public static method

Flashes the specified window one time. It does not change the active state of the window. To flash the window a specified number of times, use the FlashWindowEx(IntPtr, FlashWindowFlags, uint, TimeSpan) function.
public static FlashWindow ( IntPtr windowHandle ) : bool
windowHandle System.IntPtr A handle to the window to be flashed. The window can be either open or minimized.
return bool
        public static bool FlashWindow(IntPtr windowHandle)
        {
            // Check if the handle is valid
            HandleManipulator.ValidateAsArgument(windowHandle, "windowHandle");

            // Flash the window
            return NativeMethods.FlashWindow(windowHandle, true);
        }

Usage Example

Exemplo n.º 1
0
 /// <summary>
 /// Flashes the window one time. It does not change the active state of the window.
 /// </summary>
 public void Flash()
 {
     WindowCore.FlashWindow(Handle);
 }