首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

怎样让Image中的图片不停的更换,实现幻灯片效果?解决思路

2012-01-20 
怎样让Image中的图片不停的更换,实现幻灯片效果?这个效果能实现吗?[解决办法]http://topic.csdn.net/t/200

怎样让Image中的图片不停的更换,实现幻灯片效果?
这个效果能实现吗?

[解决办法]
http://topic.csdn.net/t/20060510/17/4742245.html
[解决办法]
加个定时器
[解决办法]
用javascript定时修改 <img> 的src
[解决办法]
用timer控件,在其中写入修改picture控件Image属性的图片源语句就行了
[解决办法]
用Timer和ImageList两个控件,其中ImageList用来存放你要显示的图片的集合

private int i = 0;
private void timer1_Tick(object sender, System.EventArgs e)
{
if( i == this.imageList1.Images.Count)
i = 0;
for(;i <this.imageList1.Images.Count;)
{
this.pictureBox1.Image = this.imageList1.Images[i];
i++;
return;
}
}

热点排行