I am writing a program that will play a slideshow (among other things). The slideshow is controlled by a backgroundWorker, and is set to a while(true) loop so it will constantly
What if you store the image to variable of that type and then set your picturebox image and then dispose the older one like
Image oldImage = horPicBox.Image; horPicBox.Image = Image.FromFile(imagePaths[index]); oldImage.Dispose();