FIX: Pull-Down on Drive Box Disabled When Change Width of Box (73809)



The information in this article applies to:

  • Microsoft Visual Basic Standard Edition for Windows 2.0
  • Microsoft Visual Basic Professional Edition for Windows 2.0
  • Microsoft Visual Basic Standard Edition for Windows 1.0

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.

MORE INFORMATION

Steps to Reproduce Problem

  1. Start Visual Basic. Form1 is created by default.
  2. Add a drive list box to Form1.
  3. In the Click event of Form1, add the following code:
       Sub Form_Click ()
          Drive1.Width = Drive1.Width * 2
       End Sub
    						
  4. Run the application (press F5).
  5. Click the down arrow on the drive box to display the list.
  6. Choose a drive; everything works as it should.
  7. Click Form1; the width of the drive box changes.
  8. Click the down arrow on the drive box.
Note that the list fails to display.

Modification Type:MajorLast Reviewed:11/18/2003
Keywords:kbbug kbfix KB73809