I made a program that looks for images in a certin folder including subfolders to detect doubles.

My problem is that as soon as a picture (JPG or GIF) is not complete (aborted download, etc) the LoadPicture hangs up and the program crashes with out generating any error message (so On Error won't work).

How can I check that a picture is valid before loading it?

I also have a problem saving pictures in other formats than BMP. Is there any nice OCX or anything that can sort me out?

Cheers..