Back to product page

Picture property


Returns or sets a graphic to be displayed in a control.

Type

A Picture object.

Syntax

  • Basic
object.Picture [= value]
The Picture(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodXMPP
valueA Picture object.

Remarks

This property is only available in OCX (GUI) version of the component.

At design time, you can transfer a graphic with the Clipboard using the Copy, Cut, and Paste commands on the Edit menu. At run time, you can use Clipboard methods such as GetData, SetData, and GetFormat with the nontext Clipboard constants vbCFBitmap, vbCFMetafile, and vbCFDIB, which are listed in the Visual Basic (VB) object library in the Object Browser.

When setting the Picture property at design time, the graphic is saved and loaded with the form. If you create an executable file, the file contains the image. When you load a graphic at run time, the graphic isn't saved with the application. Use the SavePicture statement to save a graphic from a form or picture box into a file.

Note: At run time, the Picture property can be set to any other object's DragIcon, Icon, Image, or Picture property, or you can assign it the graphic returned by the LoadPicture function.

Platforms

Windows