PRB: Label Grows Wider When AutoSize and WordWrap Are True (135651)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- 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
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q135651 SYMPTOMS
As more text is added to a Label Control that has the AutoSize and WordWrap
properties set to True, both the width and the height of the label
increase. This is not what you might expect, which is that only the height
of the label would increase.
WORKAROUND
Set the Width property back to the original width explicitly after adding
text to the caption of the label.
STATUS
Microsoft is researching this behavior and will post new information here
in the Microsoft Knowledge Base as it becomes available. This behavior has
been modified in Visual Basic version 4.0. Increases in the width of the
Label control after text is added to the caption are now significantly
smaller than the increases seen in version 3.0, although they do still
occur. Also, in version 4.0, the width of the label doesn't become larger
and larger when you repeatedly add text to the caption. In Version 3.0, the
width of the label continues increasing as more text is repeatedly added to
the caption.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB135651 |
---|
|