Article ID: 141934
Article Last Modified on 12/9/2003
Set objFT = VBInstance.ActiveProject.ActiveForm
Set objFT.Properties("Picture").Value = LoadPicture("MY.BMP")
The Value property in this case returns a Properties collection not a
Picture object. You can use this Properties collection to examine and
modify the properties of the object. The following code shows three
different syntaxes for accessing the individual properties of a
FormTemplate Picture property:
Print objFT.Properties("Picture").Value("Handle").Value
Print objFT.Properties("Picture")("Width")
Print objFT.Properties!Picture!Height
The Picture object has Type, Handle, hPal, Height, and Width properties. It
is not possible to set all of these properties because they are not all
read/write properties. Therefore, you cannot construct a picture object by
simply setting all of its properties, as you can a font object.
Keywords: kbprb KB141934