title: ComboBox showing file names
body: <p>I have created a comboBox inside a Windows Form and inside this comboBox I want to show filenames inside a specific directory.</p>
  
  <p>My code Form 1:</p>
  
  <pre><code> private string path = (@"C:\Users\khaab\Documents\visual studio 2015\Projects\ReadingXML\ReadingXML\bin\Debug\Customers");
  
  private void SelectConfigComboBox_DropDown(object sender, EventArgs e)
  {
   List&lt;String&gt; Configurations = Directory.EnumerateDirectories(path).ToList();
   Path.GetFileName(path);
   SelectConfigComboBox.DataSource = Configurations;
  }
  </code></pre>
  
  <p>My problem at this moment is that when I click on the ComboBox it shows me the whole path name I want only the names of the file inside that directory.</p>