How can I use VB to view a JPEG, GIF, or XBM?
Compatibility:VB3
VB4
VB5
You can't do this with VB4 or earlier. You have to get a OCX or VBX. (Unless, of course, you have or had VB5CCE installed, in which case you can do it the same as in VB5). With VB5, you can use loadpicture, like this:
picture1 = loadpicture("mypicture.jpg")
picture2 = loadpicture("myotherpic.gif")
Or, you can set the picture or icon property of any control at design time to a JPEG, GIF, or XBM. This technique works for GIF, JPEG, WMF, BMP, ICO, RLE, and XBM.
Copyright 2000, David J Berube<Form1@aol.com>. All Rights Reserved.