Threading in c#?
<pre><code>class Form1
{ 
    private void sendemail_Click(object sender, EventArgs e)
    {           
        totalproxy=10;

        for (int i = 0; i &lt; totalproxy; i++)
        {
            ThreadStart ts1 = new ThreadStart(sendmail());
            Thread thread1 = new Thread(ts1);
            thread1.Start();
            while (thread1.IsAlive) ;
        }            

    }

    public void sendmail()
    {
        //some code goes here
    }
}   
</code></pre>

<p>is gives me an error that method name expected here</p>

<pre><code>new ThreadStart(xxxxx);
</code></pre>

<p>but <code>sendmail()</code> is already written there.</p>
