title: combobox with changing directory in c#
body: <p>I'm working on a bit of c# code that first has the user click a directory button and select a folder. How do I load a combobox with the contents of that folder(it will be text files)? Since the dir can change depending on the folder selected, I'm not sure how to go about this.</p>
  
  <p>From comment:</p>
  
  <pre><code>foreach (String file in System.IO.Directory.GetFiles(?????)) {
    comboBox1.Items.Add(new System.IO.FileInfo(file).Name);
  }
  </code></pre>
  
  <p>I don't know what to put in place of ???? to get it to work.</p>