Microsoft KB Archive/76555

= BUG: Italic and Large Fonts Display Poorly in Text Boxes =

Article ID: 76555

Article Last Modified on 12/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 2.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 1.0 Standard Edition

-



This article was previously published under Q76555



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.



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: kbbug KB76555

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.