Microsoft KB Archive/191104

= PRB: Drive ListBox Fails to Drop Down with a Small FontSize =

Article ID: 191104

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q191104



SYMPTOMS
When you set the FontSize property of a DriveListBox to a small font (that is, 4 or 5 point), the dropdown list portion of the DriveListBox might not appear. This might not occur until after the second or third time that you set the FontSize.



RESOLUTION
If you need to set the FontSize of the DriveListBox to a size smaller than 8 point, use a True Type Font.



STATUS
Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Behavior
 Create a new Standard EXE project. Form1 is created by default. Add a DriveListBox to Form1, Drive1. Add a CommandButton, Command1, to Form1.  Add the following code to Command1: Private Sub Command1_Click Drive1.FontSize=Drive1.FontSize * .5 End Sub  Run the Project. Click Command1 and then look at the Drive1 drop-down list.</li> If the list portion drops down, click Command1 again. Eventually, the list does not drop down.</li> To work around this problem set the Font property of Drive1 to a TrueType Font and run the project again.</li></ol>

RESULT: The list does not disappear.

Keywords: kbprb kbctrl KB191104

-

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

© Microsoft Corporation. All rights reserved.