How to get name of image loaded in a picturebox

G

Guy

Hi All,

Simple question.
If I have picturebox loaded with an image how do I query the name of
the image held in the picturebox.image property?

Thanks,
 
B

Bob Powell [MVP]

If you're lucky you might get information that's stored in the image
metadata as PropertyItems. You'll possibly get equipment, time-date, and
custome name if it's been entered. You can't get the filename out though. If
you open from a disc file, stash the filename somewhere for later.

--
Bob Powell [MVP]
C#, System.Drawing

September's edition of Well Formed is now available.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top