|
-
December 15th, 1999, 04:56 PM
#1
filelistbox/dirlistbox/drivelsitbox
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.
-
December 15th, 1999, 06:07 PM
#2
Re: filelistbox/dirlistbox/drivelsitbox
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, 10:28 PM
#3
Re: filelistbox/dirlistbox/drivelsitbox
With using this exact same question, But what about it when using subst'd drives?? Any successfull suggestions?? I need some help please.
-
December 17th, 1999, 06:06 AM
#4
Re: filelistbox/dirlistbox/drivelsitbox
> "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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|