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,547
  • 1
  • 13
  • 25
SilverLight
  • 19,668
  • 65
  • 192
  • 300

0 Answers0