The information in this article applies to:
SUMMARY
When you double-click an item in a directory list box control, it
opens the directory and displays its subdirectories. MORE INFORMATIONThe following code shows how to cause a directory list box to open the selected directory when the user presses the ENTER key. This code causes a Change event, just as when you double-click an item.
If your form contains a command button with the Default property set to
True, pressing the ENTER key clicks the command button instead of firing
the KeyPress event. In this case, set the Path property to List(ListIndex)
from within the button Click event handler. For example:
Additional reference(s):Chapter 18, "Using the File-System Controls" of the "Microsoft Visual Basic for Windows Programmer's Guide" Chapter 10, "Using the File-System Controls" of the "Microsoft Visual Basic for MS-DOS Programmer's Guide" Additional query words: 1.00 2.00 3.00
Keywords : |
Last Reviewed: September 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |