Hey all. I am working on an MP3 player and am having the following problem when i am importing music from a directory.
What i am wanting to do is show a openfiledialog box and let the user select which tracks to add to the mp3 player.
Now i have a folder of mp3s with over 1133 mp3 files in them. When i highlight 1133 files and click the OK button in the openfiledialog i get the following message after a couple of seconds "File doesn't exists". Now i get this message for all files after the first file that doesn't exists.
I can rerun the procedure and just add the files that it said didn't exists the first time and it runs fine.
Its like there is a file limit or something and i cant figure it out.
As always thanks a bunch
What i am wanting to do is show a openfiledialog box and let the user select which tracks to add to the mp3 player.
Now i have a folder of mp3s with over 1133 mp3 files in them. When i highlight 1133 files and click the OK button in the openfiledialog i get the following message after a couple of seconds "File doesn't exists". Now i get this message for all files after the first file that doesn't exists.
I can rerun the procedure and just add the files that it said didn't exists the first time and it runs fine.
Its like there is a file limit or something and i cant figure it out.
Code:
With OpenFileDialog1
.Filter = "MP3 Files|*.mp3"
.Title = "Please select an MP3 file to open"
.Multiselect = True
.ShowDialog()
End With
MessageBox.Show(OpenFileDialog1.FileNames.Length.ToString)
'Get the MP3 tag information from track
Dim TrackFileNames() As String = OpenFileDialog1.FileNames
OpenFileDialog1 = Nothing
Dim TrackFileName As String
For Each TrackFileName In TrackFileNames
ReadTag(TrackFileName)
Next
'Update database
As always thanks a bunch