Windows API CodePack. Get All Selected Items from CommonOpenFileDialog:IFileOpenDialog
$30-120 USD
В роботі
Опублікований over 10 years ago
$30-120 USD
Оплачується при отриманні
I work with the CommonOpenFileDialog class from the Windows® API Code Pack for Microsoft® .NET Framework
that implements the IFileOpenDialog interface.
More info about Windows API CodePack here:
[login to view URL]
Problem #1.
Pressing on the Open button in the "Open File Dialog" dialog window opens the FIRST selected folder in all the below cases:
- A single folder was selected
- Folder(s) and file(s) were selected
- Multiple folders were selected
Task #1
I need to close the "Open File Dialog" dialog window after pressing the Open button if at least one file or one folder was selected.
Problem #2.
The below method returns the first selected folders if (multiple folders) or (mutltiple folders and files) were selected in the "Open File Dialog" dialog window.
[login to view URL]([MarshalAs([login to view URL])] out IShellItemArray ppsai)
Task #2
Create a method that will return all selected elements (folders and files) in the IFileOpenDialog window as a list of IShellItem,
no matter what I selected there.