Try This:
VB Code:
Private Const BIF_NEWDIALOGSTYLE = &H40 Private Sub Command1_Click() Dim sh As New Shell32.Shell Dim str1 As Shell32.Folder2 Set str1 = sh.BrowseForFolder(Me.hwnd, "Select a Folder", BIF_NEWDIALOGSTYLE, ssfDRIVES) If Not str1 Is Nothing Then MsgBox str1.Self.Path End Sub
Pradeep![]()




icon on the left of the post.
Reply With Quote