BUG: Italic and Large Fonts Display Poorly in Text Boxes

ID: Q76555


The information in this article applies to:
  • Microsoft Visual Basic Standard and Professional Editions for Windows, versions 2.0, 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 query words: buglist3.00 2.00 3.00

Keywords :
Version :
Platform :
Issue type :


Last Reviewed: September 16, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.