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.
Printable View
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.
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.
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
Here is a module if you want to avoid the reference :)
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