Visual Basic Concepts

Using the File-System Controls (Directory List Box, Drive List Box, and File List Box)

See Also

Many applications must present information about disk drives, directories, and files. To allow users of your applications to explore the file system, Visual Basic provides two alternatives. You can use the standard dialog boxes provided by the common dialog control, or you can build custom dialogs using your own combinations of three specialized controls: the drive list box, the directory list box, and the file list box.

You can use the file-system controls to allow users to investigate and choose among available disk files in your applications. Consider using the common dialog control if you just need a standard File Open or Save dialog box.

For More Information   See "Using the Common Dialog Control" earlier in this chapter for more information.

Sample Application: Winseek.vbp

Many of the code examples are taken from the Winseek sample application (Winseek.vbp) which is listed in the Samples directory.