Article ID: 194414 - Last Review: March 18, 2005 - Revision: 2.1 FIX: "Unexpected Error" Message When Loading a GIFThis article was previously published under Q194414 SYMPTOMS
Loading a GIF file that does not specifically contain an Image Object into
Visual Basic 5.0 (for example, through the PictureBox control), generates
the run-time error 50003:
"Unexpected Error"
CAUSE
Visual Basic 5.0 does not support GIFs that include images that are
contained within Application Blocks. The Image Object must be included in
the GIF as a separate Image Object.
RESOLUTION
Use one of the following methods to work around this problem:
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article. This problem was corrected in Visual Basic version 6.0 for Windows. MORE INFORMATION
As mentioned in the "Cause" section of this article, Visual Basic 5.0 does
not support GIFs that include images which are contained within Application
Blocks. The Image Object must be included in the GIF as a separate Image
Object. This functionality currently exists in Microsoft Internet
Explorer 4.0 as well as Visual Basic 6.0.
APPLIES TO
| Article Translations
|

Back to the top
