Table of contents
TOC
Collapse the table of content
Expand the table of content

Image.ImageWidth Property (Access)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

You can use the ImageWidth property to determine the width in twips of a picture in an image control. Read/write Long.

Syntax

expression. ImageWidth

expression A variable that represents an Image object.

Remarks

This property is read-only in all views.

You can use the ImageWidth property together with the ImageHeight property to determine the size of a picture in an image control. You could then use this information to change the image control's Height and Width properties to match the size of the picture displayed.

Example

The following example prompts the user to enter the name of a bitmap and then assigns that bitmap to the Picture property of the Image1 image control. The ImageHeight and ImageWidth properties are used to resize the image control to fit the size of the bitmap.

See also

Concepts

Image Object

© 2018 Microsoft