Ejemplo n.º 1
0
        /// <summary>
        /// Flashes the window.
        /// </summary>
        /// <param name="hWnd">The h WND.</param>
        /// <param name="type">The type.</param>
        /// <param name="count">The count.</param>
        /// <param name="timeout">The timeout. milliseconds</param>
        /// <returns></returns>
        public static bool FlashWindow(IntPtr hWnd, FLASHW type, int count, int timeout)
        {
            var fInfo = new FLASHWINFO
            {
                hwnd      = hWnd,
                dwFlags   = type,
                uCount    = Convert.ToUInt32(count),
                dwTimeout = Convert.ToUInt32(timeout)
            };

            fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo));
            return(FlashWindowEx(ref fInfo));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Flashes the window.
 /// </summary>
 /// <param name="form">The form.</param>
 /// <param name="type">The type.</param>
 /// <param name="count">The count.</param>
 /// <param name="timeout">The timeout.</param>
 /// <returns></returns>
 public static bool Flash(this  Form form, FLASHW type, int count, int timeout)
 {
     return(User32.FlashWindow(form.Handle, type, count, timeout));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Flashes the window.
 /// </summary>
 /// <param name="type">The type.</param>
 /// <param name="count">The count.</param>
 /// <param name="timeout">The timeout.</param>
 /// <returns></returns>
 public bool FlashWindow(FLASHW type, int count, int timeout)
 {
     return(User32.FlashWindow(handle, type, count, timeout));
 }