for (int i = 0; i < dataGridView1.Rows.Count; i++) { new Thread((ThreadStart)delegate { GetProxies(dataGridView1.Rows[i].Cells[0].Value.ToString()); }).Start(); }