Working with the Image Control

The Image control is an ActiveX control that provides a visual interface to display bitmap images. The Image control has no events and no methods. You use an image control by setting the Picture property to the path and file name of a bitmap.

The Stretch property determines whether the image is resized to fit the area of the Image control. The following code example shows how to load a picture and stretch it to fill the control.

Private Sub ToggleStretch()
    ImageCtl1.Picture = "\windows\arrowl.2bp"
    ImageCtl1.Stretch = Not ImageCtl1.Stretch
End Sub

For more complex layering of text and images, use the PictureBox control.