Hey guys,

How would i get an imageBox Background image file location ?
Thanks in advanced.

Are you trying to get the filename back from something you've assigned earlier to the BackgroundImage property?

Are you trying to get the filename back from something you've assigned earlier to the BackgroundImage property?

Yes.

Why not just save it in a string and carry it along? I'm not sure that information sticks with the pictureBox (MSDN says that there is metadata available, but I don't know if that includes file name or not). Worst case you could make your own pictureBox that inherits everything else and includes a filename property.

Yes i think thats what i am going to do.
Thank you.