I want to display a list in an listbox
<p>I am having trouble sending a <code>List&lt;&gt;</code> to a textbox and i am not sure what the trouble is. I have checked so the List actually has values in it and that it gets properly transfered from the class into this block. </p>

<p>The code:</p>

<pre><code>  public void Listtest(List&lt;string&gt; m_customers)
    {
        lstRegistry.Items.Clear();


        for (int index = 0; index == m_customers.Count; index++)
        {
            lstRegistry.Items.Add(m_customers[index]);
        }
    }
</code></pre>

<p>The other class that is sending the <code>List&lt;&gt;</code></p>

<pre><code>     class CustomManager
{
    //private List&lt;Customer&gt; m_customers;
    List&lt;string&gt; m_customers = new List&lt;string&gt;();        

    public void CreateNewString(string adresslist, string emaillist, string phonelist, string namelist)
    {
        MainForm strIn = new MainForm();
        string newlist = string.Format("{0,-3} {1, -10} {2, -20} {3, -30}", namelist, phonelist, emaillist, adresslist);           
        m_customers.Add(newlist);  //líst is created.
        strIn.Listtest(m_customers);           
    }
}  
</code></pre>

<p>I just cant get it to work and I am really stuck. :/  </p>

<p>Thanks for any and all help and ideas!!!</p>

<p>//Regards</p>
