0

Hey guys,

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

2
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by Martje
0

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

0

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

Yes.

0

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.

0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.