OpenDialog to get a volume

I like to select with an OpenDialog which volume my app has to chose.
But the Open button does not get enabled, probably because a volume is not a folder. Can I change that eg with FileType, and how?

may be use selectfolder method ?

1 Like

I found a solution with:
f = new FolderItem(SpecialFolder.Mount)
an going thru all the items to find my Hard Disks…

Have-you read the documentation for FolderItem ?

Also, you can use DriveAt(i) (if only one drive…)

You can also iterate the .Parent for f until you find Nil. The last non Nil .Parent value is the reference to the Volume.