winforms 的openFileDialog1实现可以选择多个文件
程序员文章站
2022-06-08 17:45:01
...
this.openFileDialog1.Multiselect = true;
this.openFileDialog1.ShowDialog();
foreach(string fName in this.openFileDialog1.FileNames)
{
this.listBox1.Items.Add(fName);//这里的fName是文件的绝对路径
}