C# 的 OpenFileDialog 的筆記
讀取多個檔案路徑 並用 List 去收集
private void button_ReMultPath_Click(object sender, EventArgs e)
{
List<string> Mult_Path_String = new List<string>();
OpenFileDialog dialog = new OpenFileDialog();
dialog.Multiselect = true;
if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
foreach (string strFilename in dialog.FileNames)
{
Mult_Path_String.Add(strFilename);
}
}
}