Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid Picture in Image Control?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01205569
Message ID:
01205901
Views:
18
If you are interested in having more control and options with images in VFP, including image processing functionality, and at a great (royalty-free) price, you might look at http://smalleranimals.com/ and click to the ImgSource product. We have been using a prior-generation version of the same product for years and it has worked great.


>I'm trying to determine if the image that I assign to the Picture value of an image control is actually being displayed. In other words, if the user selects a corrupt image file to be displayed on the form in my image control, it won't be displayed. I want to be able to trap that and provide some feedback to the user so they don't think the form isn't working.
>
>Is there a way to trap this?
>
>As far as I can tell, the image control provides no feedback regarding invalid files ... it just doesn't display the picture. I'm already checking the extension and looking at the first 4 characters of the file to try to determine if they've selected a true image file. But none of this protects against corrupted image files.
>
>I'm working in VFP 8 but could switch to 9 if there were a way to do this in 9.
>
>Thanks for any help you can provide.
Previous
Reply
Map
View

Click here to load this message in the networking platform