I am trying to display my track's title instead of its path in my listbox, and it works! But when I go to play it on my media player later, I cannot because it does not have the file path. Is there a way I could somehow save the file's metadata and path to my listbox, preferably with the path hidden? If so, how?
TagLib.File tagFile = TagLib.File.Create(file.FullName); // track is the name of the mp3
MusicBox.Items.Add(tagFile.Tag.Title);
I am using a windows media player control and the TagLib library.