0

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?

Tzah Mama
  • 1,537
  • 1
  • 13
  • 25
SilverLight
  • 18,804
  • 60
  • 181
  • 287

0 Answers0