Microsoft KB Archive/73809

= FIX: Pull-Down on Drive Box Disabled When Change Width of Box =

Article ID: 73809

Article Last Modified on 11/18/2003

-

APPLIES TO


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

-



This article was previously published under Q73809



SYMPTOMS
If you change the Width property of a drive list box at run time, the pull-down list of drives no longer work.



WORKAROUND
Add the following code to the form's click event procedure to work around the problem: Sub Form_Click Drive1.Width = Drive1.Width * 2 Drive1.Refresh                    '* fixes the problem End Sub



STATUS
Microsoft has confirmed this to be a bug in Microsoft Visual Basic programming system for Windows, versions 1.0 and 2.0. This bug was corrected in Microsoft Visual Basic version 3.0 for Windows.



Steps to Reproduce Problem
 Start Visual Basic. Form1 is created by default. Add a drive list box to Form1.  In the Click event of Form1, add the following code: Sub Form_Click Drive1.Width = Drive1.Width * 2 End Sub  Run the application (press F5). Click the down arrow on the drive box to display the list. Choose a drive; everything works as it should.</li> Click Form1; the width of the drive box changes.</li> Click the down arrow on the drive box.</li></ol>

Note that the list fails to display.

Additional query words: buglist1.00 buglist2.00 fixlist3.00 2.00 3.00

Keywords: kbbug kbfix KB73809

-

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

© Microsoft Corporation. All rights reserved.