|
-
Sep 18th, 2000, 01:12 PM
#1
Thread Starter
Fanatic Member
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?
-
Sep 18th, 2000, 01:17 PM
#2
Fanatic Member
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
-
Sep 18th, 2000, 01:29 PM
#3
Thread Starter
Fanatic Member
hmm
I don't have the files.....They have to pick tem from the dialog box
-
Sep 18th, 2000, 01:54 PM
#4
You have three choices, what would you like to use?
FileListBox
Listbox
CommonDialog
Choose and I may be able to help you more.
-
Sep 18th, 2000, 02:13 PM
#5
Hyperactive Member
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
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
|