Click to See Complete Forum and Search --> : filelistbox/dirlistbox/drivelsitbox


December 15th, 1999, 03:56 PM
how do I make so when someone changes a drivelistbox, named drive1, it shows the contents of that drive in a dirlistbox named dir1 in the same from, and when someone changes a directory in dir1 it shows the corresponding files in a filelistbox called file1 in the same form.

czimmerman
December 15th, 1999, 05:07 PM
private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub

private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub




Charlie Zimmerman
http://www.freevbcode.com

December 16th, 1999, 09:28 PM
With using this exact same question, But what about it when using subst'd drives?? Any successfull suggestions?? I need some help please.

Ravi Kiran
December 17th, 1999, 05:06 AM
> "when using subst'd drives??"
Means Mapped Network drives?
In which case, VB Drive letter will show something like F: [\\lServer\\Directory]
So take the first 2 chars with Left$

DirList1.Drive = Left$(Drive1.Drive, 2)

May be that should work!

RK