PRB: Can't Set Picture Object Property from Add-In (141934)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q141934 SUMMARY
An object property accessed from an Add-In returns a Properties collection,
not the object specified by the property. This gives you the ability to
access individual properties of the object as Property objects. However,
this means that you cannot set the object property to a new object.
In the case of a Font property, each of the individual properties of the
Font object can be changed from an Add-In. However, in the case of a
Picture property, each of the individual properties of the Picture object
cannot be changed. Therefore, any object properties of type Picture cannot
be set from an Add-In. For a form, this includes the Icon, MouseIcon, and
Picture properties.
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | kbprb KB141934 |
---|
|