Link to home
Start Free TrialLog in
Avatar of R_N_WARD
R_N_WARD

asked on

Total Linkage

I want to link a combo box, drive box and a drectory list so that they work somewhat like windows explorer. The combo box is for files.
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Place a DriveListBox, a DirListBox and a FileListBox control on a form and add the following code:

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

Private Sub Drive1_Change()
    Dir1.Path = Drive1.Drive
End Sub

By the way, 5 points is not "regular" here!!!
Avatar of R_N_WARD
R_N_WARD

ASKER

Adjusted points to 10
Sorry bout the points. All I had at the time. (I ask alot of questions)
emoreau, I punch in the code, but I receved a run time error '424' --object required--
Did you place the right controls? There is not combo box in the sample that I gave you.
Yes. that was it. It Works Now. If you want, you  can wait till I have at least 20 points to give you for your answer. (A+)
Got a new prob. How do I run the file selected in the filelistbox once the user clicks command1?
As you wish! It is your points. This one was easy so accept it today in order to ask some more questions.
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial