日期:2014-05-18  浏览次数:20865 次

C# winform 程序里怎么用sideBar实现头像闪烁效果!最好发下源码!谢谢!急!
C# winform 程序里怎么用sideBar实现头像闪烁效果!发下源码!谢谢!急!

------解决方案--------------------
图片轮换可以的...我看的代码就是那样的,,
C# code

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DynamicStockIcon
{
    public partial class DynamicStockIcon : Form
    {
        public DynamicStockIcon()
        {
            InitializeComponent();
        }

        #region 本程序声明的变量
        public static bool flag=false ;
        #endregion

        private void flicker_Click(object sender,EventArgs e)
        {
            stocktimer.Enabled = true;
        }

        private void cease_Click(object sender,EventArgs e)
        {
            stocktimer.Enabled = false;
            stockIcon.Icon = Properties.Resources._1;
        }

        private void stocktimer_Tick(object sender,EventArgs e)
        {
            if(flag == false)
            {
                stockIcon.Icon = Properties.Resources._1;
                flag = true;
            }
            else
            {
                stockIcon.Icon = Properties.Resources._2;
                flag = false;
            }
        }
    }
}