title: how to get only the file name without the File Path?
body: <p>i have this code:</p>
  
  <pre><code>openFileDialog1.Filter = "csv files (*.dbf)|*.dbf";
  openFileDialog1.FilterIndex = 1;
  openFileDialog1.RestoreDirectory = true;
  openFileDialog1.FileName = "";
  
  if (openFileDialog1.ShowDialog() == DialogResult.OK)
  {
     dbf_File = openFileDialog1.FileName;
  }
  </code></pre>
  
  <p>in dbf_File  i get all the file path and name (<code>c:\MyDir\MyFile.dbf</code>)</p>
  
  <p>i need only the name - <code>MyFile.dbf</code></p>