- Open a form in Design view.
- Click the command button or toggle button, and then click Properties on the toolbar to open its property sheet.
- Click the Format tab, and in the Picture property box, type the path and file name for a .bmp, .ico, or .dib file. If you're not sure of the path or file name, click the Build button to open the Picture Builder.
In Microsoft Paint, you can create a file with a picture and caption for a button. Draw the picture and caption on a background of any size, and then select only the portion that will fit on the button. On the Edit menu, click Copy To and specify a file name in the Copy To dialog box.
Add a picture to a command button on a data access page
-
Open a data access page in Design view.
-
Click the command button you want to add the picture to, and then click Properties on the toolbar.
-
Click the Format tab, and in the BackgroundImage property box, specify the location of image you want to use in the following format:
url("http://WebServerName/FileName")
-
Do one of the following:
-
To specify that only one image appears on the button, set the BackgroundRepeat property to no-repeat.
-
To specify that copies of the image appear in a horizontal line on the button, set the BackgroundRepeat property to repeat-x.
-
To specify that copies of the image appear in a vertical line on the button, set the BackgroundRepeat property to repeat-y.
-
-
Set the position of the image in the BackgroundPositionX and BackgroundPostionY property boxes.