日期:2014-05-19  浏览次数:20846 次

怎样让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;
}
}