I am using that standard API code to display an open file dialog box. I want to modify it so that the user can select a directory only. Can it be done with this or do I need to look at another method? I’m putting the partial code below as a reference:
With FileDialog
.DefaultExt = “PDF”
.DialogTitle = “Select File to Attach”
.Filter = “Acrobat Files (*.PDF)|*.pdf”
.InitialDir = OSInfo.MyDocumentsPath ‘SysDefaults.DocRoot ‘
.FilterIndex = 0
.Flags = FleFileMustExist + FleHideReadOnly + FleCreatePrompt
.hWndParent = 0
.MaxFileSize = 255
If .Show(True) Then
sFileName = .FileName
Else
lblStatus.Panels(cmMessage).Text = “User Cancelled”
AttachFile = False
‘ lblStatus.Panels(cmMessage).Text = “Ready”
GoTo Exit_AttachFile:
End If
End With