lynxAi
Member
C#:
public partial class Form1 : Form
{
string[] paths, files; // Define two arrays.
public Form1()
{
}
private void OpenFile_Click(object sender, EventArgs e)
{
OpenFileDialog dialog = new OpenFileDialog();
dialog.Multiselect = true;
if(dialog .ShowDialog ()==System .Windows .Forms .DialogResult .OK )
{
files = dialog.SafeFileName; //error with“Cannot implicitly convert string to string []”
paths = dialog.FileName; //error as same as above.
for(int i=0;i<files.Length ;i++)
{
PlayList.Items.Add(files[i]);
}
}
}