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
Printable View
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
Not a control, but a piece of code
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
thats fab, works great. thanks alot to you both