I think we are all successful people.

计时器的Tick事件处理方法,定时变换图片框中的图片代码

 

 1  private void timetime_Tick(object sender, EventArgs e)
 2         {
 3             //如果当前显示的图片索引没有到最大值就继续增加
 4             if (index < imglist.Images.Count - 1)
 5             {
 6                 index++;
 7             }
 8             else {
 9                 index = 0;
10             }
11             //设置图片框显示的图片
12             this.pictureBox1.Image = imglist.Images[index];

 

 这个超级简单,效果图不好做出来,请大家自己参考参考吧

 

posted on 2015-11-28 09:19  张BC  阅读(209)  评论(0编辑  收藏  举报
We are all best creamIT.