Saturday, January 8, 2011

Blink the of form tab in Taskbar using FlashWindow from user32.dll

using System.Runtime.InteropServices;



        [DllImport("user32.dll")]

        public static extern int FlashWindow(IntPtr Hwnd, bool Revert); 



         // Add form's resize event to judge whether a form has been minimized or not.

        private void Form4_Resize(object sender, EventArgs e)

        {

             if (this.WindowState == FormWindowState.Minimized)

                 FlashWindow(this.Handlefalse);

        }

1 comment: