-
I want to be able to allow the user to select, say 3 files,
from selected directories and do something with these files
I do not want to provide text boxes for each of these
files as the numer may increase later
What is the best way or a very good way to present this
on the screen?
-
-
hmm
I don't have the files.....They have to pick tem from the dialog box
-
You have three choices, what would you like to use?
FileListBox
Listbox
CommonDialog
Choose and I may be able to help you more.
-
Use the ListBox
Matthew is right although you could add TreeView (or whatever it's called) to the list of choices as well. But that takes alot of work to get looking right so stick with the good old listbox I reckon.
It has the multi-select capability and will be the easiest for you to use in the way you want.
The code segments you need to look into are:
Code:
' add to a form with a listbox (multiselect set to extended or simple)
Private Sub Form_Load()
Dim lsFile As String
lsFile = Dir("C:\")
While lsFile <> ""
List1.AddItem lsFile
lsFile = Dir()
Wend
End Sub
You will have to do more than this of course - but it is I think enough to point you in the right direction.
Regards