title: How to drag and drop a file onto a form and display only the file name?
body: <p>I'm using the following code:</p>
  
  <pre><code> void Form1_DragEnter(object sender, DragEventArgs e)
      {
          if (e.Data.GetDataPresent(DataFormats.FileDrop)) e.Effect = DragDropEffects.Copy;
      }
  
      void Form1_DragDrop(object sender, DragEventArgs e)
      {
          Folder.Visible = false;
          Dragndrop.Visible = false;
          if (e.Data.GetDataPresent(DataFormats.FileDrop))
          {
              string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
              foreach (string filePath in files)
              {
                  CurrentFiles.Text = filePath.ToString();
              }
          }
  </code></pre>
  
  <p>And would like to have the <code>CurrentFiles</code> textbox display the names of the files that were dragged onto the form. Could someone help me with only displaying the name of the files instead of the whole file path?</p>