窗体闪烁

/// <summary>
        /// lashes the specified window one time. It does not change the active state of the window.
        /// </summary>
        /// <param name="hWnd">A handle to the window to be flashed. The window can be either open or minimized.</param>
        /// <param name="bInvert">If this parameter is TRUE, the window is flashed from one state to the other. If it is FALSE, the window is returned to its original state (either active or inactive).</param>
        /// <returns>The return value specifies the window's state before the call to the FlashWindow function. If the window caption was drawn as active before the call, the return value is nonzero. Otherwise, the return value is zero.</returns>
        [DllImport("User32.dll")]
        public static extern bool FlashWindow(IntPtr hWnd, bool bInvert);
原文地址:https://www.cnblogs.com/wjshan0808/p/4243901.html