OpenFileDialog dlg = new OpenFileDialog();
dlg.Multiselect = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
foreach(string s in dlg.FileNames)
{
MessageBox.Show(s);
}
}
用openFileDialog选择多个文件
最新推荐文章于 2023-08-23 01:00:40 发布
本文介绍如何在程序中使用OpenFileDialog控件实现多文件选择功能,包括设置多选模式、显示对话框及处理返回的文件名。

480

被折叠的 条评论
为什么被折叠?



