hi All,
I am new to c#. I have two threads in my application. One thread (UI thread) takes inputs from user and another thread (worker thread) does some calculation. Now if user clicks stop then worker thread should stop or exit from where it was. But I do not know how to do this in C#. I tried it using static property but no results. If some how I can modify a variable of a class from UI thread and it can be checked in worker thread. Please suggest a way by which I can communicate between 2 threads.