by Imran (2 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 25th September 2007
Date Added: Mon 8th February 2021
Rating:
(1 Votes)
Can you select a FOLDER in VB and return its path, if not here is a code to select a FOLDER.
API Declarations
Private shlShell As Shell32.Shell
Private shlFolder As Shell32.Folder
Private Const RETURNONLYFSDIR = &H1
Set shlShell = New Shell32.Shell
Set shlFolder = shlShell.BrowseForFolder(Me.hWnd, "Select a Folder.......", RETURNONLYDIR)
If Not shlFolder Is Nothing Then
MsgBox shlFolder.Self.Path
End If
End Sub
No comments have been posted about Can you select a FOLDER in VB and return its path, if not here is a code to select a FOLDER.. Why not be the first to post a comment about Can you select a FOLDER in VB and return its path, if not here is a code to select a FOLDER..