Returns a handle to the graphic contained within a Picture object.
Syntax
object.Handle
The object placeholder represents an object expression that evaluates to an object in the Applies To list.
Return Value
The value returned by the Handle property depends on the current setting of the Type property as shown in the following table:
Type Property | Return Value |
1 (Bitmap) | An HBITMAP handle. |
2 (Metafile) | An HMETAFILE handle. |
3 (Icon) | An HICON or an HCURSOR handle. |
4 (Enhanced Metafile) | An HENHMETAFILE handle. |
Remarks
The Handle property is useful when you need to pass a handle to a graphic as part of a call to a function in a dynamic-link library (DLL) or the Windows API.