Super_Collector
Member
- Joined
- Aug 14, 2008
- Messages
- 7
- Programming Experience
- Beginner
I have a missing image property set in the properties of the PictureBox, simply called missing.jpg
I need to detect if the PictureBox is able to read the image image1.jpg from the web server.
PictureBox1.ItemLocation = "MyServer.com/images/image1.jpg"
If image1.jpg can be displayed, then it appears in the PictureBox1
If image1.jpg does not exist, then missing.jpg appears in the PictureBox1
*** I have that working 100% ***
What I need to figure out is how to tell the application whether or not the image could actually be loaded. (Internet access could be down making the server unreachable, firewall could be blocking the connection/site, etc.)
So, I don't really need to know if the image exists, I need to know if it was displayed after I told it to.
This is a picturebox, not a browser so I cannot find the correct atttributes/prioerties to check.
All direction or resources are appreciated.
I need to detect if the PictureBox is able to read the image image1.jpg from the web server.
PictureBox1.ItemLocation = "MyServer.com/images/image1.jpg"
If image1.jpg can be displayed, then it appears in the PictureBox1
If image1.jpg does not exist, then missing.jpg appears in the PictureBox1
*** I have that working 100% ***
What I need to figure out is how to tell the application whether or not the image could actually be loaded. (Internet access could be down making the server unreachable, firewall could be blocking the connection/site, etc.)
So, I don't really need to know if the image exists, I need to know if it was displayed after I told it to.
This is a picturebox, not a browser so I cannot find the correct atttributes/prioerties to check.
All direction or resources are appreciated.