读书人

C# winform 程序里如何用sideBar实现头

发布时间: 2012-08-17 02:08:34 作者: rapoo

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;            }        }    }} 

读书人网 >C#

热点推荐