我这有个可以实现的代码如下:
public partial class 雪飘人间 : Form
{
int a =5;
public 雪飘人间()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
timer1.Start();
}
private void timer1_Tick(object sender, EventArgs e)
{
a++;
this.pictureBox2.Image = Image.FromFile("D:\\"+a+".jpg", false);
if (a==10)
{
a = 5;
}
}
private void button3_Click(object sender, EventArgs e)
{
timer1.Stop();
}
}
当热,它浏览的相片是来源于D盘的。