[Solved] To clear loaded images in a picturebox-c#
Your code has many issues. The one you are looking for is that you don’t clear the alist before loading new file names. So insert: alist.Clear(); before //Get Each files And also filelength = alist.Count; after the loop. No need to count while adding! Also note that ArrayList is pretty much depracated and you should … Read more