PictureTiling Property
You can use the PictureTiling property to specify whether a background picture is tiled across the entire image control, Form window, form, or page of a report. Read/write Boolean.
expression.PictureTiling
expression Required. An expression that returns one of the objects in the Applies To list.
Remarks
The PictureTiling property uses the following settings.
Setting | Visual Basic | Description |
---|---|---|
Yes | True | The picture is tiled. |
No | False | (Default) The picture isn't tiled. |
You can also set the default for this property by using a control's default control style or the DefaultControl method in Visual Basic.
You can create interesting effects by placing a picture on a form or report and setting the PictureTiling property to Yes. The alignment of the tiled images is affected by the PictureAlignment property setting. For example, if the PictureAlignment property is set to Top Left, tiling begins at the top left of the image control, Form window, or page of a report.
Note If the PictureAlignment property is set to Form Center and the PictureTiling property is set to Yes, the background picture of a form will be tiled across the form, not across the Form window.
Example
The following example tiles the picture in the "CustomerPhoto" image control on the "Order Entry" form.
Forms("Order Entry").Controls("CustomerPhoto").PictureTiling = True