I have a PictureBox in .Net that displays images from a folder "Photos" using the following code on a click event:
PictureBox1.Image = Nothing 'Clearing PictureBox1
Dim bmPhotos as new Bitmap("C:\Photos\ImageName.gif")
PictureBox1.Image = bmPhotos
I want to replace "ImageName" in the file path with the name of the last captured image programatically. Is there a way to find out the name of the image that was added last to the "Photos" folder?
Thank you.