Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 2.09 KB

Access.NavigationButton.Picture.md

File metadata and controls

43 lines (24 loc) · 2.09 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
NavigationButton.Picture property (Access)
vbaac10.chm10451
vbaac10.chm10451
Access.NavigationButton.Picture
ba8a27c9-b288-401b-a6c1-46fb16bc1326
03/05/2019
medium

NavigationButton.Picture property (Access)

Use the Picture property to specify a bitmap or other type of graphic to be displayed on the specified control. Read/write String.

Syntax

expression.Picture

expression A variable that represents a NavigationButton object.

Remarks

The Picture property contains (bitmap) or the path and file name of a bitmap or other type of graphic to be displayed.

The default setting is (none). After the graphic is loaded into the object, the property setting is (bitmap) or the path and file name of the graphic. If you delete (bitmap) or the path and file name of the graphic from the property setting, the picture is deleted from the object, and the property setting is again (none).

If the PictureType property is set to Embedded, the graphic is stored with the object.

You can create custom bitmaps by using Microsoft Paintbrush or another application that creates bitmap files. A bitmap file must have a .bmp, .ico, or .dib extension. You can also use graphics files in the .wmf or .emf formats, or any other graphic file type for which you have a graphics filter. Forms, reports, and image controls support all graphics. Command buttons and toggle buttons only support bitmaps.

Buttons can display either a caption or a picture. If you assign both to a button, the picture will be visible, but the caption won't. If the picture is deleted, the caption reappears. Microsoft Access displays the picture centered on the button and clipped if the picture is larger than the button.

To create a command button or toggle button with a caption and a picture, you could include the desired caption as part of the bitmap and assign the bitmap to the Picture property of the control.

[!includeSupport and feedback]