Loads a picture file to the control's Picture property.
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. |
The following example will load the Picture in xfilename.gif to the AImage's Picture property:
img1.LoadFromFile("c:\dirname\xfilename.gif"))