Picture Property

Specifies an image to display on a control or object. Available at design time and run time.

NoteNote

At design time, if you set the Picture property to a file that does not exist, Visual FoxPro displays the appropriate message, but the property remains set to the file specified. At run time, if the Picture property is set to a file that does not exist, Visual FoxPro disregards the Picture property.

Control.Picture [ = cFileName ]
-Or
Control.Picture(nIndex) [ = cFileName ]

Parameters

cFileName

Specifies the name of a graphics file.

NoteNote

Visual FoxPro supports all graphics file formats handled by Graphics Device Interface+ (GDI+). Visual FoxPro supports animated .gif files for the Picture property only on an Image control. For more information about valid graphics file formats, see Graphics Support in Visual FoxPro.

nIndex

Specifies an integer corresponding to the order in which items are displayed in the control. For the first item in a control, nIndex = 1.

Expand imageRemarks

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic