Results 1 to 3 of 3

Thread: [RESOLVED] DriveListBoxes and DirListBoxes

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2007
    Posts
    520

    Resolved [RESOLVED] DriveListBoxes and DirListBoxes

    Can anyone tell me how i can link a DirListBox with a DriveListBox so that when you change the DriveListBox the DirListBox automaticaly changes as well so that it shows the directoies in the new selected drive.
    Last edited by frosty16; Feb 27th, 2007 at 09:44 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: DriveListBoxes and DirListBoxes

    Code:
    Private Sub Form_Load() 
    Drive1.Drive = "C:" 
    End Sub
    
    Private Sub Drive1_Change() 
    Dir1.Path = Drive1.Drive 
    End Sub
    
    Private Sub Dir1_Change() 
    File1.Path = Dir1.Path 
    End Sub

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2007
    Posts
    520

    Re: DriveListBoxes and DirListBoxes

    thank you

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