我想编写一个打开文件位置的函数,例如。 listbox
我可以从中添加MP3文件,然后将其添加到OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Multiselect = true;
if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
files = openFileDialog1.SafeFileNames;
paths = openFileDialog1.FileNames;
for (int i = 0; i < files.Length; i++)
{
listBox1.Items.Add(files[i]);
}
}
。我试过这个,但它没有打开我想要的文件夹。有什么想法吗?
$(function()
{
// Insert code here
});