OpenFileDialog Multiselect problem

心不动则不痛 提交于 2021-02-19 01:17:30

问题


I have standart OpenFileDialog

var openFileDialog = new OpenFileDialog
{
    DefaultExt = "mpo",
    Filter = "Image file |*.mpo",
    Multiselect = true,
    RestoreDirectory = true,
};

and when i try to use it to open several photos on "fujifilm finepix real 3d w1" photo camera it fires message box "Cannot open multiple items from this location. Try selecting a single item instead." Opening only 1 file is ok.

When i try to select photos from hard drive or other removable device everything is ok.

Anyone get the same problem?


回答1:


Due to the fact that you already found out that doing the same from another location doesn't make any problems, there is something with your camera.

As a workaround for your application you shouldn't open all the files directly on the device. Instead copy all selected items into a save location (a self-created folder below the temp folder) and open them from there.



来源:https://stackoverflow.com/questions/6098852/openfiledialog-multiselect-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!