HeaderPane
Main
Hide
Share Link
Print

Picture Property, SftPictureObject Object

Defines the image object using an OLE Picture object (IPictureDisp interface).

Syntax

Get

VBSet pPictureDisp = object.Picture As IPictureDisp

Put

VBobject.Picture = pPictureDisp As IPictureDisp

PutRef

VBSet object.Picture = pPictureDisp As IPictureDisp

object

A SftPictureObject object.

pPictureDisp

Defines the image object using an OLE Picture object.

Comments

The Picture property defines the image object using an OLE Picture object (IPictureDisp interface).

If the image is based on a bitmap, bitmap transparency is used.

The SftPictureObject.Type property is set to sftTypeIDispatch. The SftPictureObject.ActualHeight and SftPictureObject.ActualWidth properties reflect the image size.

Example

This example assigns an image from a PictureBox to the first tab.

Private Sub Form_Load()
     With SftTabs1.Direct
         Set .Tab(0).Image.Picture = Picture1.Picture
     End With
End Sub

See Also SftPictureObject Object | Object Hierarchy


Last Updated 11/19/2026 - (email)
© 2026 Softel vdm, Inc.