Visual Basic - Objects - Controls - Image gox.gif (837 bytes)Picture Box

downx.gif (830 bytes)Propertiesdownx.gif (830 bytes)Methods

The Image control uses fewer resources and repaints faster than a PictureBox control, but it supports only a subset of the PictureBox properties, events, and methods.

Prefix   img
Default name Image1
Default property Picture
    
VB 3   vb3-image.gif (965 bytes)   vb3-img.gif (2372 bytes)   .BMP, .DIB, .ICO, .WMF
VB 4
VB 5 Image-5.gif (963 bytes) .BMP, .DIB, .CUR, .WMF, .JPG, .GIF

Image - Properties : Picture, Stretch

Picture (Default property)
Design
VB3 : .BMP, .ICO, .RLE, .WMF
VB5 : .BMP, .DIB, .CUR, .WMF, .JPG, .GIF
Run
Image1.Picture = LoadPicture("c:\image\Dance1.bmp")
Stretch
True    Picture is stretched to fill the Image control
False Picture is not stretched
- Image control is stretched to contain the picture

Image - Methods