I am currently using FolderBrowserDialogto select a folder in my .NET solution. However, this dialog box does not allow me to select SharePoint folders, only local or network folders.
I would like to use something similar to SaveFileDialogor OpenFileDialogbecause they allow you to browse SharePoint folders. However, these options require that you specify or select a specific file, not a folder.
Is there a way to use create a folder selection similar to SaveFileDialogor OpenFileDialog? Ideas in VB.NET or C # are welcome.
UPDATE:
As a workaround, I now use the folder collector from the Office application, for example:
app.FileDialog(Office.MsoFileDialogType.msoFileDialogFolderPicker)
where appcan be the object of the application Excel, PowerPoint, Word, etc. I still prefer not to reference the Office application to remove this, but this is the only option I have found so far. I did not present this as an answer, because I hope for a real solution, not a workaround.
source
share