VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Can you select a FOLDER in VB and return its path, if not here is a code to select a FOLDER.

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

Rate Can you select a FOLDER in VB and return its path, if not here is a code to select a FOLDER.



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

Download this snippet    Add to My Saved Code

Can you select a FOLDER in VB and return its path, if not here is a code to select a FOLDER. Comments

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..

Post your comment

Subject:
Message:
0/1000 characters