loading jpg files into image control 
Author Message
 loading jpg files into image control

> I have an application which imports images from a drive and places them into
> image boxes in VB. It checks whether the files have JPG or BMP extensions
> and if uses the following code to load them into an array of image controls:
> Now, this works perfectly on two workstations at our site on both Win 2000
> and Win 98. However my client has tried it on his PC and it only imports the
> BMP files on the drive and not the JPG files. He is running Windows 2000.

Did you distribute this app as source.  Maybe he recompiled in an older version
of VB?

Also, are you sure the files with extension "jpg" are valid JPEG files?  Maybe
you should have your client send you some of the files that don't work.  I
believe the intrinsic VB controls may have problems with certain flavors of

Also, is your code robust enough to handle a corrupt file and continue?  Perhaps
it is hitting one file, {*filter*} and then failing - making it appear that it
can't open any of the files???

Sorry if this is too elementary, but I didn't see any other responses so thought
I would share...
Ray Mercer

Sat, 05 Feb 2005 08:53:25 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Error loading GIF or JPG image in PictureBox or Image controls

2. Custom Control to load JPG or GIF Files

3. Need control to load .jpg files

4. I need to drag and drop a jpg file from windows to an image control

5. Viewing parts of a .JPG file currently held in a VB image control

6. Saving Image or PictureBox control's contents to file (BMP/JPG etc)

7. Loading JPG images

8. Can't load jpg image, HELP!!!

9. VB 4.0 can load JPG and GIF images!!?

10. How I do JPG and GIF image format load into VB4

11. Loading Images from Access into Image Control

12. load a Jpeg image into a picturebox or image control


Powered by phpBB® Forum Software