Microsoft KB Archive/76628

= BUG: Dir List Box Does Not Give Error 68 Device Unavailable =

Article ID: 76628

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 Q76628



SYMPTOMS
Under circumstances described below, error 68 (Device Unavailable) fails to display in conjunction with drive and directory list boxes. In the example given below, error 68 should display when drive A's door is open and the user clicks the directory list box.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Problem
 Start a New Project in Visual Basic. Form1 is created by default. Add a drive list box and a directory list box to Form1.  Add the following code to the Sub Drive1_Change event procedure: Sub Drive1_Change On Error GoTo Trap Dir1.Path = Drive1.Drive Exit Sub Trap: Print Err Resume Next End Sub  Run the program by pressing the F5 key. Select the down arrow of the drive list box by clicking the left mouse button. Select drive A. At this point, an error 68 should appear on the form. Select the drive list box down arrow again. This time, select drive C.</li> Place a disk in drive A. Repeat step 5. No error message is displayed. The directory list box should be updated to display the A drive.</li> Open the drive A disk door. Then double-click in the directory list box.</li></ol>

Error 68 should be displayed, but isn't. Error 68, &quot;Device Unavailable,&quot; should display when drive A's door is open and the user clicks the directory list box.

Additional query words: buglist1.00 buglist2.00 buglist3.00 2.00 3.00 errmsg

Keywords: kbbug KB76628

-

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

© Microsoft Corporation. All rights reserved.