The information in this article applies to:
SYMPTOMSThe value of the "Alignment" property of a TextBox control is ignored and the default of "left aligned" is applied on some systems. The same application installed on other systems does not exhibit this behavior. CAUSE
Visual Basic derives its TextBox control from a proprietary class called
"ThunderTextBox," which in turn is based on the "Edit" class provided by
the operating system. Because the operating system defines the "Edit"
class, some of the properties and functionality of a TextBox may change
depending upon the version of the operating system where the application is
executed. This is the case with the TextBox's Alignment property. In
earlier versions of Windows, changes to the "Alignment" property would not
take effect unless the "MultiLine" property of the TextBox was set to
"True." The latest versions of the Windows operating system no longer have
this limitation. Windows 95 (regardless of service packs)Versions of Windows that do not have this requirement include: Windows 98 RESOLUTION
There are two approaches for working around this inconsistency:
STATUSThis behavior is by design. REFERENCESFor additional information, please see the following articles in the Microsoft Knowledge Base: Q189249 HOWTO: Determine Which 32-Bit Windows Version Is Being Used Q111952 HOWTO: Right Justify/Center Text in Single-Line Text Control Additional query words:
Keywords : kbEditCtrl kbVBp kbVBp500 kbVBp600 kbGrpVB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |