CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Guest

    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.


  2. #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


  3. #3
    Guest

    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.


  4. #4
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    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
  •  





Click Here to Expand Forum to Full Width

Featured