If you use a combination of file-system controls, you can synchronize the information they display. For example, if you have a drive list box, a directory list box, and a file list box with the default names Drive1, Dir1, and File1, the sequence of events might work like this:
Drive1.Drive
property) to the Path property of the Dir1 list box with the following statements:Private Sub Drive1_Change ()
Dir1.Path = Drive1.Drive
End Sub
Dir1.Path
property) to the File1.Path
property of the File1 list box:Private Sub Dir1_Change ()
File1.Path = Dir1.Path
End Sub
File1.Path
property causes the display in the File1 list box to reflect the Dir1 path specification.The event procedures you use and the properties you change depend on the way your application uses the combination of file-system controls. The code in "File-System Controls Scenario: A File Seeker Application" illustrates the synchronization of controls described here.