|
-
Aug 23rd, 2000, 02:58 PM
#1
Thread Starter
Lively Member
Hello,
I am looking for a way to allow users to create a new folder as well as browse for an existing one and allow the user to select it... I have a few options. I would like to allow users to browse the exising folders, and have an option to create one. I have this code that allows the browsing of folders:
Private Sub Command2_Click()
Dim strResFolder As String
strResFolder = BrowseForFolder(hwnd, "Please select a folder.")
If strResFolder = "" Then
Call MsgBox("The Cancel button was pressed.", vbExclamation)
Else
Call MsgBox("The folder " & strResFolder & " was selected.", vbExclamation)
End If
Text1 = strResFolder
End Sub
where strResFolder is declared in an API
there isn't a way that I can have a button similar to the CommonDialog box button for creating a new folder?
Or maybe I can just ask if they want to create a folder, and have them enter the name. Does anyone know of code to do that? Similar to what you see when intalling items into your computer through an installer.
What my target is is a way to allow users to place files with as much ease an accessability as possible. A commondialog box has an option to create a folder, but, the selection of one file is NOT what I am looking for. Jsut a way for users to locate a folder or create one of thier own.
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
|