I have a DirListBox and FileListBox. What shoul I write, to selecting folder in Dirlistbox, in filelistbox will appear files in folder that is selected in dirlistBox?
Printable View
I have a DirListBox and FileListBox. What shoul I write, to selecting folder in Dirlistbox, in filelistbox will appear files in folder that is selected in dirlistBox?
change the path of the filelistbox upon its click event
Dir1 is trhe Directory list box and File1 is the File list box.VB Code:
Private Sub Dir1_Change() File1.Path = Dir1.Path End Sub
To synchronize Visual Basic's three directory controls use
VB 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
thanks