Directory List Box Does Not Display Error 68

ID Number: Q76628

1.00

WINDOWS

buglist1.00

Summary:

Under the circumstances described below, an error may fail to display

in conjunction with drive and directory list boxes.

Microsoft has confirmed this to be a problem in the Microsoft Visual

Basic programming system version 1.0 for Windows. We are researching

this problem and will post new information here as it becomes

available.

More Information:

Steps to Reproduce Problem

--------------------------

1. Start Visual Basic with a New Project.

2. Add a drive list box and a directory list box to Form1.

3. Go to the event procedure Sub Drive1_Change () and add the

following code:

Sub Drive1_Change ()

On Error GoTo Trap

Dir1.Path = Drive1.Drive

Exit Sub

Trap:

Print Err

Resume Next

End Sub

4. Start the program by pressing the F5 key.

5. Select the down arrow of the drive list box by clicking the left

mouse button. Select drive A. (Note: An error 68 should appear on

the form.)

6. Select the drive list box down arrow again. This time, select drive

C.

7. Place a floppy disk in drive A. Repeat step 5. (Note: No error

message is displayed.) The directory list box should be updated to

display the A drive.

8. Open the disk door in drive A and double-click in the directory

list box.

Error 68 should be displayed, but it isn't. Error 68, "Device

Unavailable," should be displayed in the example above when the drive

A door is open and the user selects the directory list box for a file.

Additional reference words: 1.00