C#: how to check and display the content of a folder?
<p>I'm not sure whether this topics has been disscussed before or not, but I'm not sure the exact word to search for it. What method/class should I use?</p>

<p>The program has 3 buttons: <strong>1) for folder browsing, 2) scan for the selected folder content, and  3) open the file.</strong> When user browse the selected folder*<em>(1)<strong>, user click scan button to scan from the first file until the last available files and listed it text box</strong>(2)</em>* and from that user can decide whether to open the files or not*<em>(3)</em>*.</p>

<p>Here are what have I done so far (no 1 and 3):</p>

<pre><code>//For browse.
private void browse2()
{
    if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
     {
        this.txtDest.Text = folderBrowserDialog1.SelectedPath;
     }
}

//For opening folder.
private void btnOpen_Click(object sender, EventArgs e)
{
    try
    {
        Process.Start(txtDest.Text);
    }
    catch
    {
        MessageBox.Show("Please select one file/folder");
    }
}
</code></pre>
