I have not seen anyone post help on these yet, so here it is. These are really easy to use, but on your own this might be difficult to figure out. I will explain how to use these, but it will be helpful to download the example program for this help file.
First off you need to make a DirListBox, DriveListBox, and FileListBox(they are all found on the toolbar buttons at the left of your screen). You should already know how to do this so just arrange them as you wish over the form. Now that you have arranged these over your form, let's get these three list boxes working together.
Double click on the DriveListBox and put the following code into its newly created sub routine.
Dir1.Path = Drive1.Drive
Every time the DriveListBox, which is called Dir1, is changed to a different drive it will carry out this command. This command will change the drive that Dir1 is on. Now double click on Dir1 in the object window. Put the following into its sub:
File1.FileName = Dir1.Path
Every time the folder changes File1(the FileListBox) changes the files it is listing to whatever files are in that directory.
As you can see, it is not difficult at all to use these list boxes. If you decide you would like to make the FileListBox list only Text files you would write the following into your code(this is assuming that the FileListBox is named File1).
File1.Pattern = "*.txt"
Of course you could make it show only dill files by typing "*.dll" in place of "*.txt". You can also change the Pattern property of a FileListBox in the properties window.
Confused? Download the example program here. It will help IMMENSELY!
Copyright ©2000 by Kyle Baker. Please read our disclaimer.