multithreading - Stop Thread on Button Click in C# -
2016-2-5 · First you need to set your thread to some field and then you can control it as shown in code, Start (),Abort (). If you want Abort () thread from button click event you need to move thread field out of method, that way you can get access from your button click event. Hope Helps!
Get Price