Link an image to a component. Image objects are linked to an image file by the object’s dataSource property. To link a graphic image to an object,

  1. Select Filename as the Location.

Dialog box options

 

Location

Specify the image file type to be used, either:

Resource Choose this option for a bitmap that is stored in a .DLL file. When you select this option and click image\BNTOOL.gif, the Choose Resource dialog box appears.

Filename Choose this option for a bitmap that is a standalone BMP, ICO, GIF, JPG, IPE, XBN, or TIF file. Filename is the most common source. When you select this option and click image\BNTOOL.gif, a Choose Image dialog box appears, from which you can choose an image file.

Binary Choose this option for a bitmap that is stored in a binary field of a table. Only a simple object like a RadioButton can use a binary location. A RadioButton is either on or off, so a binary location can be any Boolean field in a table. When you select this option and click image\BNTOOL.gif, a Choose Field dialog box appears, from which you can choose a binary field from a table, if you have already linked the form to the table through the form's View property. If you haven't set the form's View property, a message box prompts you to do so.

Image

Click the tool button to display an Open dialog box to locate the particular file type.

How to get there: In the Inspector, select an Image component and click the wrench tool beside the dataSource property.