I know this is an easy question but I forgot how to do this. How do you change the drive in the dir list box after you have selected it in the drive list box.
Thanks.
In the change event of the DriveListBox you would set the Path of the DirectoryListBox = DriveListBox.Drive and if you are using a FileListBox you would set the Path of the FileListBox = to the path of the DirectoryListBox in the change event of the DirectoryListBox.
[tt]
Option Explicit
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.