Question:
How do I import a JPEG image into an application during run-time?
Answer:
The Image and Picture Box controls in VB5 can display JPEG images. Use the LoadPicture function to load an image file at runtime:
imgCtl.Picture = LoadPicture("myfile.jpg")
Previous versions of VB provided no built-in support for JPEG files, so if you’re using VB3 or 4, you’ll have to use a third-party image control that supports them.