|
-
May 30th, 2005, 06:34 AM
#1
Thread Starter
Lively Member
browsing for directory [Resolved]
hi guys, i was just wondering if there is a control where i canbrowse for a directory in my hardrive? or do i need o do some coding for this? thanks in advance guys.
Last edited by trex; May 30th, 2005 at 08:09 PM.
-
May 30th, 2005, 06:47 AM
#2
Re: browsing for directory
there is a browseforfolder api but you can also do this
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
casey.
-
May 30th, 2005, 06:54 AM
#3
Re: browsing for directory
U can use a DriveListBox, a DirListBox & FileListBox in conjunction to browse the in a visual way using the mouse.
EDIT: Uuh.. Sorry vbasicgirl, I did't see ur post
-
May 30th, 2005, 03:13 PM
#4
-
May 30th, 2005, 08:09 PM
#5
Thread Starter
Lively Member
Re: browsing for directory
hi guys. i went through all of your codes and it was really great especially yours manavo11. thank you so much guys. i really appreciate your help
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
|