I found this on Google, click here, which someone asked a similar question, receiving a response that they should check if their file exists. However, I’m loading images from web links, in which it displays an error image if A)The picture is not found or B)If, like in image hosting services like Photobucket, displays the ‘Bandwidth exceeded’ image. Is there a way to detect if either an error image is showing or if a image is invalid?
Share
Yes, the LoadCompleted event tells you what went wrong:
There could also be a case where the image load completed properly but there was something wrong with the image file itself:
This event handler catches load errors too so might be the one you want to use.