المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : how to abort the running multi Thread



C# Programming
11-13-2009, 02:15 AM
my programe base on WinForm.
It has two buttons,one is "start" the other is "stop".
now i click the "start" button it will excute the code as below:

public void Polling()
{
try
{
...........
Thread[] mythread = new Thread[Count];
for (int i=0; i