Image Control for Visual Basic 6.0 Users

The Image control in Visual Basic 6.0 has no direct equivalent in Visual Basic 2008. The Image control is a lightweight control; Visual Basic 2008 does not support lightweight controls.

Upgrading the Stretch Property

The properties, methods, and events for the Image control are a subset of those for the PictureBox control (with the exception of the Stretch property). For more information, see PictureBox Control for Visual Basic 6.0 Users.

The following table shows the mapping between the Stretch property and the equivalent for the Visual Basic 2008 PictureBox control.

Stretch Property Equivalents

Visual Basic 6.0

Visual Basic 2008 Equivalent

Stretch = False

PictureBoxSizeMode = Normal

Stretch = True

PictureBoxSizeMode = StretchImage

Upgrade Notes

When a Visual Basic 6.0 application is upgraded to Visual Basic 2008, any Image controls are upgraded to PictureBox controls.

See Also

Concepts

PictureBox Control for Visual Basic 6.0 Users

Reference

PictureBox Control Overview (Windows Forms)