i am using thread.abort command to kill the thread but it not working is there any other way of terminating the thread
private void button1_Click(object sender, EventArgs e)
{
if (Reciever.IsAlive == true)
{
MessageBox.Show("Alive");
Reciever.Abort();
}
else
{
MessageBox.Show("Dead");
Reciever.Start();
}
}
i am using this but everytime i get Alive status Reciever is my global thread