files in folder in listview
<p>I want to make a listview of files in folder,but it doesn't work. What's wrong with this code?</p>

<pre><code>DialogResult wczytywanie_z_folderu = new DialogResult();
wczytywanie_z_folderu = folderBrowserDialog1.ShowDialog();
string[] pliki_w_folderze = Directory.GetFiles(folderBrowserDialog1.SelectedPath);
if (wczytywanie_z_folderu == DialogResult.OK)
{
    List&lt;string&gt; lista = new List&lt;string&gt;();
    lista = pliki_w_folderze.ToList();

    int dl_listy = lista.Count;
    int dlugosc = pliki_w_folderze.Length;

    for (int i = 0; i == dlugosc; i = i + 1)
    {
        string alfabet = "abcdefghijklmnopqrstuwvxyz";
        char[] litery = alfabet.ToCharArray();
        Random r = new Random();
        string temp = "";
        for (int j = 0; j &lt; 1; j++)
        {
            int random_letter = r.Next(litery.Length);
            temp += litery[random_letter].ToString();

            ListViewItem str = new ListViewItem(temp);

            str.Text = lista[i];
            listView1.Items.Add(str);
        }
}
</code></pre>
