OpenFileDialog ofd = new OpenFileDialog();ofd.Multiselect = true;if (ofd.ShowDialog() == DialogResult.OK){ foreach (string file in ofd.FileNames) { //code }}