Hi everyone
I'm doing a program to display pictures from a list of files in a directory, so I can type something in about them.
I have a 'skip button' that moves the pictures forward, moving first picture off the screen, second picture in to first picturebox, 3rd into 2nd box, etc.
Problem is when I get to the end of the jpegs file name list, if there are no more pictures, I tried setting the picturebox to "". This gives me an 'invalid picture' error message. If I simply skip setting it then last picture stays in the box.
I can't find any methods under help for picturebox to clear the box. Short of pointing to a jpeg of some solid color, which seems silly, how can I clear a picture box that had a picture in it?
I'm doing a program to display pictures from a list of files in a directory, so I can type something in about them.
I have a 'skip button' that moves the pictures forward, moving first picture off the screen, second picture in to first picturebox, 3rd into 2nd box, etc.
Problem is when I get to the end of the jpegs file name list, if there are no more pictures, I tried setting the picturebox to "". This gives me an 'invalid picture' error message. If I simply skip setting it then last picture stays in the box.
I can't find any methods under help for picturebox to clear the box. Short of pointing to a jpeg of some solid color, which seems silly, how can I clear a picture box that had a picture in it?