I’m usin Windows.Forms aplication and I can get files or directory from my user using OpenFileDialog or FolderBrowserDialog. But I need get both in a unique dialog. I Try use OpenFileDialog with .multselect = true and select files and folders, but in code when I acess OpenFileDialog.FileNames this property returns only a file names, never a selected directory.
Exists a static method in System.IO.Directory call GetFileSystemEntries that do exactly I want. But I need a Dialog that do it.
Anyone can help me?
According to microsoft’s documentation about c# You have to use different dialog to select folder and files