OpenFileDialog 多选问题 [英] OpenFileDialog Multiselect problem

查看:77
本文介绍了OpenFileDialog 多选问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有标准的 OpenFileDialog

I have standart OpenFileDialog

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

当我尝试使用它在fujifilm finepix real 3d w1"照片相机上打开多张照片时,它会触发消息框无法从此位置打开多个项目.尝试选择一个改为单个项目." 只打开 1 个文件就可以了.

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?

推荐答案

由于您已经发现从其他位置执行相同操作不会产生任何问题,因此您的相机有问题.

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.

这篇关于OpenFileDialog 多选问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆