Microsoft KB Archive/179052

= BUG: Transparent Label on Transparent Control Does Not Display =

Article ID: 179052

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q179052



SYMPTOMS
The Label text on a UserControl does not appear or appears "jagged" when the UserControl is placed in a container.



CAUSE
This problem occurs when the BackStyle property of both the Label control and the UserControl are set to Transparent. If the Font property of the Label control is set to a TrueType font, the Label text appears "jagged." If the Font property of the Label control is set to a non-TrueType font, the Label text does not appear at all.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior

 * 1) Start a new ActiveX control project in Visual Basic. UserControl1 is created by default.
 * 2) Set the BackStyle property of UserControl1 to 0-Transparent.
 * 3) Add a Label control to UserControl1. Set the BackStyle property of the Label control to 0-Transparent. Enter some text in the Caption property, such as "Hello World." Close the UserControl1 control.
 * 4) Add a Standard EXE project to the project by completing the following steps:


 * 1) * From the File menu, click Add Project. The Add Project dialog box appears.
 * 2) * From the New Tab, click Standard EXE.
 * 3) * Click Open to close the dialog box. Form1 is created by default.
 * 4) Add the UserControl you created in the previous steps to Form1. Note that the caption in the Label control does not appear.

Additional query words: ocx user kbcontrol kbactivex control kbdsi kbDSupport kbVBp500 kbVBp600 kbVBp

Keywords: kbbug KB179052

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.