Image object (Outlook Forms Script)

Displays a picture on a form.

Remarks

The Image control lets you display a picture as part of the data in a form. For example, you might use an Image to display employee photographs in a personnel form.

The Image lets you crop, size, or zoom a picture, but does not allow you to edit the contents of the picture. For example, you cannot use the Image to change the colors in the picture, to make the picture transparent, or to refine the image of the picture. You must use image editing software for these purposes.

The Image object supports the following file formats:

  • *.bmp
  • *.cur
  • *.gif
  • *.ico
  • *.jpg
  • *.wmf

You can also display a picture on a Label. However, a Label does not let you crop, size, or zoom the picture.

Events

Name Description
Click Occurs when the user clicks inside the control.

Properties

Name Description
AutoSize Returns or sets a Boolean that specifies whether an object automatically resizes to display its entire contents. Read/write.
BackColor Returns or sets a Long that specifies the background color of the object. Read/write.
BackStyle Returns or sets an Integer that specifies the background style for an object. Read/write.
BorderColor Returns or sets a Long that specifies the border color of an object. Read/write.
BorderStyle Returns or sets an Integer that specifies the type of border of the control. Read/write.
Enabled Returns or sets a Boolean that specifies whether a control can receive the focus and respond to user-generated events. Read/write.
MouseIcon Returns a String that represents the full path name of a custom icon that is to be assigned to the control. Read-only.
MousePointer Returns or sets an Integer that specifies the type of pointer displayed when the user positions the mouse over a particular object. Read/write.
Picture Returns a String that specifies the full path name of a bitmap to display on a control. Read-only.
PictureAlignment Returns or sets an Integer that specifies the location of a background picture. Read/write.
PictureSizeMode Returns or sets an Integer that specifies how to display the background picture on a control. Read/write.
PictureTiling Returns or sets a Boolean that specifies whether a picture is repeated across the background of the object. Read/write.
SpecialEffect Returns or sets an Integer that specifies the visual appearance of an object. Read/write.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.