Looping Forever in a Windows Forms Application

后端 未结 4 530
误落风尘
误落风尘 2020-12-30 15:59

I am using Visual C# sand I\'m using a Windows Form rather than a console application. Therefore I\'m not working in Main (), but rather in the Form File. I\'m also very new

4条回答
  •  [愿得一人]
    2020-12-30 16:37

    If you need your form to respond to a button click, the loop will have to take place in a thread other than the main thread, a BackgroundWorker would suit you.

提交回复
热议问题