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

Thread: FileList Box

  1. #1
    Join Date
    Sep 1999
    Location
    Northern Utah, U.S. of America
    Posts
    38

    FileList Box

    To all Wizards, I solicit your wisdom,

    When you have a subst'd drive And you are using the following VB dialog boxes for the following:
    Drive Box, Directory Box, File Box, - I onlying get information in the first two boxes. But when I use a NON subst'd drive, say the "C:\" harddrive - I also get filename information in the file list box - but if it is a subst'd drive, my file list box is empty! but I know that there is many files there! Can any one help out with a work around.

    VBFingers.
    RSVP Please.




  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: FileList Box

    I was unable to replicate your problem, are you sure you are using the Drive/Dir and File Lists Correctly?

    private Sub Dir1_Change()
    File1 = Dir1
    End Sub

    private Sub Drive1_Change()
    Dir1 = Drive1
    End Sub




    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

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

    Re: FileList Box

    Sometimes the Drive letter for Mapped Drives ( that's what your subst'd drive means, i guess?) also includes the server/machine name and the Folder like
    F: [//server/path]

    So just take the first 2 chars: Left$(Drive1.Drive,2) or Look for ":" and take the left portion or USe api to get the drive letter "GetDrives" or some such call.. i dont recollect ofhand


    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