|
-
Jun 10th, 2005, 07:46 AM
#1
Thread Starter
Lively Member
Directory Browser?
Is there a directory browser control similar to the file browser control? Ive been used to using the commonDialog control for chosing a file for save/open but is there a controll that lets the user simply puick a directory and click ok?
Thanks Ghaz
You fear me because I'm different, i pitty you because your all the same.
-
Jun 10th, 2005, 07:51 AM
#2
Re: Directory Browser?
Not a control, but a piece of code
-
Jun 10th, 2005, 07:55 AM
#3
Re: Directory Browser?
VB Code:
'Make a reference to Microsoft Shell Controls and Automation
Dim sh As New Shell32.Shell
Dim str1 As Shell32.Folder2
Set str1 = sh.BrowseForFolder(Me.hWnd, "Select a Folder", 0, ssfDRIVES)
If Not str1 Is Nothing Then
MsgBox str1.Self.Path
End If
-
Jun 10th, 2005, 08:03 AM
#4
Thread Starter
Lively Member
Re: Directory Browser?
thats fab, works great. thanks alot to you both
You fear me because I'm different, i pitty you because your all the same.
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
|