Use Image.FromFile(filePath) in a try/catch block. If it throws an
exception, it is not a valid image file.
--
HTH,
Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com
Where there's a Will, there's a William.
"Sala" <sa**********@gmail.comwrote in message
news:11**********************@s80g2000cwa.googlegr oups.com...
I have 5 attachement files and i have to check whether all
files are image files if anyone of a file is not an image file then i
have to display alert message on webform..