0

I have a form variable number of instances of which are created and shown in the runtime based on the user action. Each form instance starts a thread on its construction. The thread needs to run as long as the Form exst.

Now, I want the instances to stop the thread it started on its FormClosing event. How do I do that?

UPDATE: The thread updates the text of the Textbox in the form in a certain interval. The interval is provided by the Thread.Sleep() method in the subroutine which is run by the thread.

Dilip Raj Baral
  • 3,060
  • 6
  • 34
  • 62

0 Answers0