Unable to Display Uppercase W in Small Text Box

Last reviewed: June 21, 1995
Article ID: Q87770
The information in this article applies to:
  • Standard and Professional Editions of Microsoft Visual Basic for Windows, versions 2.0 and 3.0
  • Microsoft Visual Basic programming system for Windows, version 1.0

SUMMARY

SYMPTOMS

   An uppercase W character may fail to display in the smallest possible
   size text box on a Microsoft Visual Basic for Windows form with the
   default FontSize (8.25) and FontName (Helv or Helvetica) selected. All
   other uppercase letters display correctly.

CAUSE
   Because the uppercase letter W is the widest of the uppercase letters in
   the Helv 8.25 font, and it is slightly wider then the width of the
   smallest possible Visual Basic text box, there is not enough room to
   display the letter. Therefore, nothing appears in the text box.

RESOLUTION
   This situation is limitation of the text box control in Microsoft Visual
   Basic for Windows. Avoid the problem by using a different font for the
   text box or by increasing the size of the text box.

MORE INFORMATION

Steps to Reproduce Behavior

1. Start Visual Basic, or from the File menu, choose New Project (ALT,
   F, N) if Visual Basic is already running. Form1 is created by default.

  • Add the smallest possible text box to display the letter T in the word Text1 of the text box to Form1.

  • Press F5 to run the example. Activate the CAPS LOCK key and type an uppercase W.

    In Windows version 3.0, the letter W does not appear in the text box. Instead, a space appears as if you had pressed the SPACEBAR.

    In Windows version 3.1, the letter W appears not to be entered. It appears as if it is ignored.

    For further testing, try other uppercase letters. There should be no problem with displaying other uppercase letters.


  • Additional reference words: 1.00 2.00 3.00
    KBCategory: kbprg
    KBSubcategory: PrgCtrlsStd


    THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

    Last reviewed: June 21, 1995
    © 1998 Microsoft Corporation. All rights reserved. Terms of Use.