|
-
Jan 18th, 2007, 05:35 AM
#1
Thread Starter
Member
[RESOLVED] browse directory
hi
how can I click a browse button to choose a directory or location (folder) not a file
thanks
-
Jan 18th, 2007, 05:43 AM
#2
Addicted Member
Re: browse directory
Use the DirListBox control.
-
Jan 18th, 2007, 05:57 AM
#3
-
Jan 18th, 2007, 06:50 AM
#4
Re: browse directory
VB Code:
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
-
Jan 18th, 2007, 07:08 AM
#5
Lively Member
Re: browse directory
You might want to use a drive box control as well, in case the user has the file in a different drive than the application.
If, somehow, I help you, please rate the post using the scales icon in the left bar <----  .
Please Use Naming Conventions in your projects! ------\/
http://www.visibleprogress.com/vb_na...onventions.htm
Me to Brother
-Hey, look at this avater I made in about 5 seconds
-What, morrisons?
-AGHHHHHH
-
Jan 18th, 2007, 11:49 AM
#6
Re: browse directory
The DirListBox control is an old style control from VB3. It works, but BrowseForFolder looks a lot more modern (and includes drives in the same control).
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
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
|