Article ID: 138820
Article Last Modified on 12/9/2003
APPLIES TO
- Microsoft Visual Basic 4.0 Standard Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 16-bit Enterprise Edition
- Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
This article was previously published under Q138820
SYMPTOMS
Some portions of the image on a toolbar button do not appear and as a
result the button image appears incomplete.
CAUSE
By default, the MaskColor property of the ImageList control is set to
black. This causes the black portions of images on toolbar buttons (or any
other control that uses an ImageList) to be masked out and not appear.
RESOLUTION
Use the color dialog box that appears when you change a color property to
change the MaskColor property of the ImageList that is bound to the toolbar
to color other than black. Toolbar buttons that have already been created
will not change color at design time unless they are refreshed by having
one of their properties modified. However, all buttons will appear
correctly at run time.
STATUS
Microsoft has confirmed this to be an issue in the Microsoft products
listed at the beginning of this article. This problem has been corrected in
the Visual Basic version 4.0a for Windows synchronization release.
REFERENCES
Custom Control Reference in the Visual Basic version 4.0 Help file.
Additional query words: 4.00 4.00a ImageList MaskColor vb4all vb4win
Keywords: kbbug KB138820