How to stop threads?

前端 未结 6 1031
清酒与你
清酒与你 2021-01-23 07:45

Hi guys I start threads with such code:

    Thread[] thr;
    private void button1_Click(object sender, EventArgs e)
    {
        decimal value = numericUpDown2         


        
6条回答
  •  野的像风
    2021-01-23 08:32

    simplistic answer is to use the thread Abort() method however your code does not really make it clear what condition,

    what loop tests vs a condition? why do you need to abort a thread? I am asking as there may be a better way to approach this

提交回复
热议问题