How to Quickly List the Contents of a Directory (119396)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q119396 SUMMARY
Although Visual Basic has both built-in functions (Dir$ and Dir) and a
built-in control (File list box) for listing the files in a directory,
using a standard list box and the Windows API SendMessage function lists
files in a directory much more quickly.
NOTE: Replacing the File list box or Dir command using the technique
described in this article will only improve performance perceptibly if the
File list box or Dir command is used heavily in the application.
Modification Type: | Major | Last Reviewed: | 10/30/2003 |
---|
Keywords: | KB119396 |
---|
|