I am making a program for a slideshow in C#
this is the code that causes problems :
The problem is: It shows my first image: sImage[0] and after some time, it shows the last image, but i don't see the other images.
this is the code that causes problems :
Code:
private void btnPlay_Click(object sender, EventArgs e)
{
for (int a = 0; a < iAmountOfImages; a++)
{
pbSlideshow.SizeMode = PictureBoxSizeMode.Zoom;
pbSlideshow.Image = new Bitmap(sImage[a]);
System.Threading.Thread.Sleep(2000);
}
}
Comment