LoadImage Method

Loads the primary or secondary image at the specified index.

Syntax

object.LoadImage bPrimary, nIndex, bstrFileName

Properties

The LoadImage method syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

bPrimary

Boolean. If True, the primary image at the specified index is loaded. If False, the secondary image is loaded.

nIndex

Integer. The index of the image to load. This index is one-based.

bstrFileName

String. The path and file name of the image to load.

 

Example

Applies To