Dispose in Forms
-
Hello, In my application (net2.0) I have a few threads. I want to stop the threads when the main form is closed. Now I'm not sure what I have to do. Normally I would implement a IDisposable interface. In the form exists this function already and it is not virtual. What is the best way to implement this? Which event I should use? Regards
-
Hello, In my application (net2.0) I have a few threads. I want to stop the threads when the main form is closed. Now I'm not sure what I have to do. Normally I would implement a IDisposable interface. In the form exists this function already and it is not virtual. What is the best way to implement this? Which event I should use? Regards
Hello, Try to use
FormClosing
event (.net 2.0) of the form. HTH. Cheers. Maqsood Ahmed - MCAD.net Kolachi Advanced Technologies http://www.kolachi.net