hi
how can I click a browse button to choose a directory or location (folder) not a file
thanks
Printable View
hi
how can I click a browse button to choose a directory or location (folder) not a file
thanks
Use the DirListBox control.
SHBrowseForFolder API
http://www.allapi.net/apilist/SHBrowseForFolder.shtml
VB Code:
Private Sub Dir1_Change() File1.Path = Dir1.Path End Sub
:)
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.
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).