|
-
Mar 22nd, 2006, 03:59 AM
#1
Thread Starter
New Member
[RESOLVED] dirlistbox & filelistbox
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?
-
Mar 22nd, 2006, 04:02 AM
#2
Frenzied Member
Re: dirlistbox & filelistbox
change the path of the filelistbox upon its click event
On error goto Trap
Trap:
in case of emergency, drop the case...
****************************************
If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option. if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar
-
Mar 22nd, 2006, 04:40 AM
#3
Re: dirlistbox & filelistbox
VB Code:
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Dir1 is trhe Directory list box and File1 is the File list box.
Use [code] source code here[/code] tags when you post source code.
My Articles
-
Mar 22nd, 2006, 06:50 AM
#4
Re: dirlistbox & filelistbox
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
-
Mar 22nd, 2006, 09:57 AM
#5
Thread Starter
New Member
Re: [RESOLVED] dirlistbox & filelistbox
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|