BUG: Italic and Large Fonts Display Poorly in Text Boxes

Last reviewed: June 21, 1995
Article ID: Q76555
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

SYMPTOMS

Italic letters of any size are incorrectly truncated when typed in a text box. Also, if you use the BACKSPACE key to delete characters that are in italic text or large fonts, pieces of characters remain after the deletion.

CAUSE

This problem is caused by Windows versions 3.0 and 3.1, not by Visual Basic.

WORKAROUND

To work around this problem, you can use the Refresh method during the text box change event to correctly update the screen. However, this will also cause some visible flickering as you type characters into the text box.

To correct the appearance of the characters in the text box, add the following code to the text box's Change event.

   Sub Text1_Change ()
      Text1.Refresh
   End Sub

This code forces the text box to update the visual display every time time a change is made, so it corrects the problem but generates a flicker of the text box.

STATUS

Microsoft has confirmed this to be a bug in Microsoft Windows versions 3.0 and 3.1. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Place a large text box on a blank form.

  2. Set the text box FontSize property to any size above 12 points, or set the FontItalic property to True.

  3. From the Run menu, choose Start.

  4. Type anything in the text box.

  5. Press the BACKSPACE key.

Note: If the font size is large, the font will be displayed correctly until the characters are removed with the BACKSPACE key. Italic characters will be displayed incorrectly when entered into the text box, and backspacing will truncate the deleted characters.


Additional reference words: buglist3.00 1.00 2.00 3.00
KBCategory: kbprg kbbuglist
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.