here is my codes :
foreach (string s in ls)
{
Thread thread = new Thread(delegate()
{
thread_inside(s, k);
});
thread.Start();
}
timer_between_freuqently_1.Enabled = true;
how can i sure all thread_inside() methods completed before running the codes outside of foreach?