In my application I am taking a range of IP addresses and then splitting them up until smaller ranges and creating a thread for each smaller range, and then executing a DoWork event that contains a loop, Which loops through each IP in the smaller range and does some work.
I wan't to be able to click a button to pause all work, and then be able to resume it when I click it again.
To stop the operation, I am guessing I will need to terminate all threads, although I am unsure how I could do so. Can anyone guide me on the right track?
Here is my code to start the operation and then the DoWork Method.