LoadFromFile Method (AImage)

Loads a picture file to the control's Picture property.

Syntax

Object.LoadFromFile ( sFileName )

The LoadFromFile method syntax has the following parts:

 

Name

Type

Description

Object

AImage

AImage control

sFileName

Val BString

A string expression specifying a picture file to load to the control's Picture property. The default is no picture.

Example

The following example will load the Picture in xfilename.gif to the AImage's Picture property:

img1.LoadFromFile("c:\dirname\xfilename.gif"))

Applies to

AImage

See Also

Picture, SaveToFile