PRB: TransparentPaint Backstyle Option Unavailable (174216)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q174216 SYMPTOMS
The Visual Basic 5.0 documentation discusses a TransparentPaint option for
the BackStyle property of the UserControl. However, this feature was not
implemented in the product. Without this option, it is not possible to
create a completely transparent ActiveX Control using Visual Basic. If you
need a transparent ActiveX Control, develop the control using Microsoft
Visual C++.
This presents two problems when working with ActiveX controls created using
Visual Basic. Transparent controls cannot be drawn on and they do not
respond to events that occur on the control; these events are passed on to
the container.
NOTE: This documentation error has been corrected in Visual Basic version
6.0.
RESOLUTION
There is no way to simulate the TransparentPaint option, but under some
circumstances it may be possible to achieve the desired result. There are
two such situations:
- The ActiveX control is being used in a container that has a solid-color
background.
- You have a bitmap that contains some type of symbol, drawing or "hot
spot" that is not transparent.
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
REFERENCES
Readme.hlp
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB174216 |
---|
|