Property Picture of [imagebox] could not be set

MasamuneXGP
07-20-2003, 01:25 AM
Hey all. One of my friends seems to be getting the above error for every image box in the source when I send him the code. It loads fine for me, but all the Image Boxes just don't work for him. Yes, he has the .frx file. The compiled version doesn't work either; it gives "Unexpected error" for an error message and closes. Apperently the LoadPicture() function doesn't work for him either. Any idea what's wrong/how to fix?

EDIT: oh yeah, he's running WindowsME (<---poor fool =p)

Hawk
07-20-2003, 03:36 AM
Are you sure that he's using the picture box properly?

Just in case,

picturebox.picture = loadpicture("C:\xxx\picture.bmp")

You should check things like the format, eg is it a readable format for VB. VB doesn't recognise many file types when it comes to VB, mainly BMP's & JPG's. I don't know about GIF's.

If that doesn't work, maybe his components (.ocx file) are bung, or even his msvbvm50.dll or msvbvm60.dll aren't feeling too well, but then you'd probably notice the latter.

That's all I can think of.

Squidge
07-20-2003, 03:43 AM
can we see the code your using? (the picture bit)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum