private void button2_Click(object sender, EventArgs e)
{
int j = 0;
for (j = 0; j < imageList1.Images.Count; j++)
{
if (pictureBox1.Image == imageList1.Images[j] && imageList1.Images.Count > j + 1)
{
pictureBox1.Image = imageList1.Images[j + 1];
return;
}
} if (j == imageList1.Images.Count)
{
MessageBox.Show("与" + hz + "相关的图片已浏览完!");
imageList1.Dispose();
}
}我的代码哪错了我想做一个图片浏览程序这是其中的“下一张”的click事件
然后通过控制index来改变图片