title: How to drag and drop mp3 files to a listbox without the file path?
body: <p>I am having some problems with a media player made in C#, I had already asked for another problem here in stackoverflow, but now I have a different one and I think it's the last one.</p>
  
  <p>I want to drag and drop MP3 and WAV files to a listbox in a windows form, I can drop them correctly, but I can't play them without showing the full path of the file. </p>
  
  <p>Here's what I've done so far:</p>
  
  <pre><code>private void listBox1_DragDrop(object sender, DragEventArgs e)
      {
  
          string[] files = (string[])e.Data.GetData(DataFormats.FileDrop, false);
          foreach (string m in files)
          {
              listBox1.Items.Add(Path.GetFileNameWithoutExtension(m));
              mediaList.Add(m);
          }
  </code></pre>
  
  <p><strong>mediaList</strong> is a list that helps me to save the playlist.
  <strong>listbox1</strong> is my main playlist.</p>
  
  <p>To play the songs I use this code, which has been working well 'til now:</p>
  
  <pre><code>axWindowsMediaPlayer1.URL = mediaList[listBox1.SelectedIndex];
  </code></pre>
  
  <p>Thanks in advance. -ChrisCreateBoss</p>