如何使用C#选择多个文件夹 [英] How to select multiple folders using C#

查看:1084
本文介绍了如何使用C#选择多个文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为特定操作选择多个文件夹



有没有办法用C#选择多个文件夹。



如果是这样的话。

I want to select multiple folders for a particular operation

Is there any way to select multiple folders using C#.

If so how to do this.

推荐答案

如果您使用的是文件对话框,请尝试

openFileDialog.Multiselect = true;
If you are using File dialog, try
openFileDialog.Multiselect = true;


标准 FolderBrowseDialog 不支持多选。但你可以自己酿造 - 见 this [ ^ ] SO文章。



/ ravi
The standard FolderBrowseDialog doesn't support multiselect. But you can brew your own - see this[^] SO article.

/ravi


这篇关于如何使用C#选择多个文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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