码迷,mamicode.com
首页 > 其他好文 > 详细

那个好好玩的特效,每个人都可以做到哦

时间:2015-11-28 10:33:27      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:

计时器的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];

 

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

 

那个好好玩的特效,每个人都可以做到哦

标签:

原文地址:http://www.cnblogs.com/ay-nzz/p/ay_qzz.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!