用NotifyIcon控件和timer组件就可以,每隔多长时间换个图片就是闪烁效果了

解决方案 »

  1.   

    我做过 消失来时 改变图片位置就好了 时间间隔500ms 改变坐标位置 然后 500ms还原坐标位置
      

  2.   

    楼上说很好。而且实现起来也比较简单。我也试演过,就是用一个TIMER和NotifyIcon,用时间来控制NotifyIcon更换图片的时间。两个不同的图片,分时来更换就OK了。
      

  3.   

    有消息过来触发事件,事件方法中将Icon换掉,查看消息后再把Icon换回去
      

  4.   

    NotifyIcon控件和timer控件  然后用时间控件控制时间间隔
    当检测到消息到来 那么就触发时间控件 计时 NotifyIcon更换图片.
      

  5.   

    如果任务栏也闪的话   FlashWindow 
      

  6.   

    用到两个时间控件,一个图片控件
               //窗体启动
              private void Form1_Load(object sender, EventArgs e)
            {
             //时间控件运行
              this.timer1.Start();
            }
              //0.2秒之后运行
            private void timer1_Tick(object sender, EventArgs e)
            {
                this.pictureBox1.Left+=2;
                this.pictureBox1.Top += 2;
                this.timer2.Start();
                this.timer1.Stop();
            }
              //0.2秒之后运行
            private void timer2_Tick(object sender, EventArgs e)
            {
                this.pictureBox1.Left -= 2;
                this.pictureBox1.Top -= 2;
                this.timer1.Start();
                this.timer2.Stop();
            }
      

  7.   

            /// <summary>
            /// 闪动!!每隔0.N 秒调用
            /// </summary>
            /// <param name="StripBtn"></param>
            public static void BtnFlash(ToolStripSplitButton StripBtn)
            {
                ToolStripItemCollection items = StripBtn.DropDownItems;
                if (items.Count != 0)
                {
                    if (StripBtn.Text == "消息")
                        StripBtn.Text =  "新的";
                    else
                        StripBtn.Text = "消息";
                    foreach (ToolStripItem item in items)
                    {
                        if (item.DisplayStyle == ToolStripItemDisplayStyle.Image)
                            item.DisplayStyle = ToolStripItemDisplayStyle.Text;
                        else
                            item.DisplayStyle = ToolStripItemDisplayStyle.Image;
                    }
                }
                else
                    StripBtn.Text = "聊天";
            }
      

  8.   

            bool flag = true;
            private void timer1_Tick(object sender, EventArgs e)
            {
                if (flag == false)
                {
                    notifyIcon1.Icon = System.Drawing.Icon.ExtractAssociatedIcon("d:\\1.ico");
                    flag = true;
                }
                else
                {
                    notifyIcon1.Icon = System.Drawing.Icon.ExtractAssociatedIcon("d:\\2.ico");
                    flag = false;
                }        }