level 9
ListBox1.Items.AddRange(OpenFileDialog1.SafeFileNames)
获取后是 何曼婷 许嵩 - 素颜.mp3
怎么把文件类型去掉 何曼婷 许嵩 - 素颜
2012年10月29日 03点10分
1
level 12
用System.IO.Path.GetFileNameWithoutExtension函数获取不包含扩展名的文件名
参数是文件的完整路径,所以要把SafeFileNames改为FileNames。
ListBox1.Items.AddRange(
(From fileName In OpenFileDialog1.FileNames
Select IO.Path.GetFileNameWithoutExtension(fileName)).ToArray())
2012年10月31日 09点10分
3
level 4
最笨的办法:Length-4
额。。。。貌似一样可以实现~
2012年10月31日 11点10分
4
level 9
With OpenFileDialog1 '添加歌曲
.Multiselect = True
.FileName = " "
.Filter = "MP3(*.MP3)|*.MP3"
.FilterIndex = 1
End With
OpenFileDialog1.ShowDialog()
ListBox1.Items.AddRange(OpenFileDialog1.SafeFileNames)
2012年11月07日 06点11分
5