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

Recommended Answers

All 5 Replies

If by imageBox, you mean PictureBox Control, you can get the location like this.

string location = pictureBox1.ImageLocation;

**EDIT**

nevermind i didn't read the question obviously. Let me play around with this for a few and i'll get back with you.

I have a new question. Why would you not know the location of the backgroundimage. When you set it through the properties or through code, you have to select it from a known location.

How and where is this background image being set?

Nevermind, i already got the answer.

So what it is? Just in case others ever need this information, it will be good to know.

What Martje means is:

"Nevermind, I already got the answer. Thank you so much for your generosity and help."

But yeah, do share the answer with us please.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.